...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::log::sources::channel_logger_mt — Narrow-char thread-safe logger. Functionally equivalent to basic_channel_logger
.
// In header: <boost/log/sources/channel_logger.hpp> template<typename ChannelT = std::string> class channel_logger_mt : public basic_composite_logger< char, channel_logger_mt< ChannelT >, multi_thread_model< implementation_defined >, features< channel< ChannelT > > > { public: // construct/copy/destruct channel_logger_mt(); channel_logger_mt(channel_logger_mt const &); template<typename... ArgsT> explicit channel_logger_mt(ArgsT... const &); explicit channel_logger_mt(ChannelT const &); channel_logger_mt & operator=(channel_logger_mt const &); };
See channel
class template for a more detailed description
channel_logger_mt
public
construct/copy/destructchannel_logger_mt();
Default constructor
channel_logger_mt(channel_logger_mt const & that);
Copy constructor
template<typename... ArgsT> explicit channel_logger_mt(ArgsT... const & args);
Constructor with named arguments
explicit channel_logger_mt(ChannelT const & channel);
The constructor creates the logger with the specified channel name
Parameters: |
|
channel_logger_mt & operator=(channel_logger_mt const & that);
Assignment operator
Swaps two loggers