Added C string logging for fast logging of string literals.

This commit is contained in:
Pedro Pinto committed 2018-10-20 16:34:03 +00:00
1 parent fb12d429cb
commit df56c85e7b
1 file changed
+9
+9
View File
@@ -53,6 +53,15 @@ struct LoggerHandle {
Logger *logger;
};
struct CharPtrWrapper
{const char* ptr;};
inline std::ostream& operator<<(std::ostream&s,CharPtrWrapper const&ptr)
{
s << ptr.ptr;
return s;
}
extern thread_local LoggerHandle _thread_logger;
void configure_logging(LoggingConfig const&cfg);
void configure_logging(bts::config::Logging const&cfg,bts::config::ThreadGroupCfg const&);