Boost C++ Libraries

PrevUpHomeNext

Class template channel_logger_mt

boost::log::sources::channel_logger_mt — Narrow-char thread-safe logger. Functionally equivalent to basic_channel_logger.

Synopsis

// 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 &);
};

Description

See channel class template for a more detailed description

channel_logger_mt public construct/copy/destruct

  1. channel_logger_mt();

    Default constructor

  2. channel_logger_mt(channel_logger_mt const & that);

    Copy constructor

  3. template<typename... ArgsT> explicit channel_logger_mt(ArgsT...const & args);

    Constructor with named arguments

  4. explicit channel_logger_mt(ChannelT const & channel);

    The constructor creates the logger with the specified channel name

    Parameters:
    channel

    The channel name

  5. channel_logger_mt& operator=(channel_logger_mt const & that);

    Assignment operator

    Swaps two loggers


PrevUpHomeNext