Added C string logging for fast logging of string literals.
This commit is contained in:
1 parent
fb12d429cb
commit
df56c85e7b
1 file changed
+9
@@ -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&);
|
||||
|
||||
Reference in new issue
Block a user