]> git.sesse.net Git - casparcg/blobdiff - common/log.h
[logging] Suppress the logging of full path names in stack traces so that only the...
[casparcg] / common / log.h
index 4cc983e4556f0b787a1c10df62f7bc28a17f352c..860c1a6466f024852cf96974d8109b37c8b26304 100644 (file)
 #include <memory>
 
 namespace caspar { namespace log {
-       
+
 namespace internal{
 void init();
 std::wstring get_call_stack();
 }
 
+const char* remove_source_prefix(const char* file);
+
 template<typename T>
 inline void replace_nonprintable(std::basic_string<T, std::char_traits<T>, std::allocator<T>>& str, T with)
 {
        std::locale loc;
        std::replace_if(str.begin(), str.end(), [&](T c)->bool {
-               return 
-                       (!std::isprint(c, loc) 
-                       && c != '\r' 
+               return
+                       (!std::isprint(c, loc)
+                       && c != '\r'
                        && c != '\n')
                        || c > static_cast<T>(127);
        }, with);
@@ -119,4 +121,3 @@ void print_child(
                const boost::property_tree::wptree& tree);
 
 }}
-