util/logging.cc
/// Create a console ostream backend and attach std::clog to it
/// This code is not required for headless operation.
///
Create a console ostream backend and attach std::clog to it
This code is not required for headless operation.
Create a console ostream backend and attach std :: clog to it This code is not required for headless operation .
static void
init_console_logging( boost::shared_ptr< logging::core > core )
{
    boost::shared_ptr< sinks::text_ostream_backend > os_backend =
        boost::make_shared< sinks::text_ostream_backend >();
    os_backend->add_stream(
        boost::shared_ptr< std::ostream >(&std::clog, boost::null_deleter()));
    using os_sink_t = sinks::synchronous_sink< sinks::text_ostream_backend >;
    boost::shared_ptr< os_sink_t > os_sink(new os_sink_t(os_backend));
    os_sink->set_formatter(&rlog_formatter);
    core->add_sink(os_sink);
}
static void init_console_logging ( boost :: shared_ptr < logging :: core > core ) { boost :: shared_ptr < sinks :: text_ostream_backend > os_backend = boost :: make_shared < sinks :: text_ostream_backend > ( ) ; os_backend -> add_stream ( boost :: shared_ptr < std :: ostream > ( & std :: clog , boost :: null_deleter ( ) ) ) ; using os_sink_t = sinks :: synchronous_sink < sinks :: text_ostream_backend > ; boost :: shared_ptr < os_sink_t > os_sink ( new os_sink_t ( os_backend ) ) ; os_sink -> set_formatter ( & rlog_formatter ) ; core -> add_sink ( os_sink ) ; }
Create a console ostream backend and attach std::clog to it
This code is not required for headless operation.
Create a console ostream backend and attach std :: clog to it This code is not required for headless operation .
// Wrap it into the frontend and register in the core. // The backend requires synchronization in the frontend. // Add a formatter