move back the empty deleter in the logger.cxx

This commit is contained in:
winckler 2015-09-23 14:27:28 +02:00 committed by Mohammad Al-Turany
parent a0388c084e
commit 5212dd4ce1

View File

@ -43,8 +43,7 @@ void init_log_console()
typedef sinks::synchronous_sink<sinks::text_ostream_backend> text_sink; typedef sinks::synchronous_sink<sinks::text_ostream_backend> text_sink;
boost::shared_ptr<text_sink> sink = boost::make_shared<text_sink>(); boost::shared_ptr<text_sink> sink = boost::make_shared<text_sink>();
// add "console" output stream to our 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 // specify the format of the log message
sink->set_formatter(&init_log_formatter<tag_console>); sink->set_formatter(&init_log_formatter<tag_console>);