Minimal TS streamlog
Loading
Created by: rete
BEGINRELEASENOTES
streamlog
streamlog::out
becomes thread_local
.logconfig
logstream::global_init( &std::cout, "loggername" , MESSAGE::name() ) ;
logstream::global_init()
method#ifdef STREAMLOG_NEW_TS_IMPL
// initialize the global logger config (new implementation)
logstream::global_init( &std::cout, "loggername" , MESSAGE::name() ) ;
#else
// intiialize the global logger instance itself (old implementation)
streamlog::out.init( std::cout, "loggername" ) ;
#endif
ENDRELEASENOTES
The rest of the library has been updated internally, but the interface stays the same (except initialization as shown above). Note also that the multi-threaded example has been tested with helgrind and works fine.