mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
add an other fairmq logger implementation in case boost version < 1.56 for backward compability
This commit is contained in:
committed by
Mohammad Al-Turany
parent
74f7c5873a
commit
ca7a76110d
@@ -46,7 +46,9 @@ void init_log_console()
|
||||
typedef sinks::synchronous_sink<sinks::text_ostream_backend> text_sink;
|
||||
boost::shared_ptr<text_sink> sink = boost::make_shared<text_sink>();
|
||||
// add "console" output stream to our sink
|
||||
sink->locked_backend()->add_stream(boost::shared_ptr<std::ostream>(&std::clog, boost::null_deleter()));
|
||||
//sink->locked_backend()->add_stream(boost::shared_ptr<std::ostream>(&std::clog, boost::null_deleter()));
|
||||
sink->locked_backend()->add_stream(boost::shared_ptr<std::ostream>(&std::clog));
|
||||
|
||||
// specify the format of the log message
|
||||
sink->set_formatter(&init_log_formatter<tag_console>);
|
||||
// add sink to the core
|
||||
|
Reference in New Issue
Block a user