Boost C++ Libraries

PrevUpHomeNext

Function template init_log_to_console

boost::log::init_log_to_console

Synopsis

// In header: <boost/log/utility/init/to_console.hpp>


template<typename CharT, typename... ArgsT> 
  shared_ptr< sinks::synchronous_sink< sinks::basic_text_ostream_backend< CharT > >> 
  init_log_to_console(ArgsT...const & args);

Description

Equivalent to: init_log_to_console(std::clog); or init_log_to_console(std::wclog);, depending on the CharT type.

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.


PrevUpHomeNext