Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

Class template severity_channel_logger_mt

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

Synopsis

// In header: <boost/log/sources/severity_channel_logger.hpp>

template<typename LevelT = int, typename ChannelT = std::string> 
class severity_channel_logger_mt : public basic_composite_logger< char, severity_channel_logger_mt< LevelT, ChannelT >, multi_thread_model< implementation_defined >, features< severity< LevelT >, channel< ChannelT > > >
{
public:
  // construct/copy/destruct
  severity_channel_logger_mt();
  severity_channel_logger_mt(severity_channel_logger_mt const &);
  template<typename... ArgsT> 
    explicit severity_channel_logger_mt(ArgsT...const &);
  severity_channel_logger_mt & operator=(severity_channel_logger_mt const &);
};

Description

See severity and channel class templates for a more detailed description

severity_channel_logger_mt public construct/copy/destruct

  1. severity_channel_logger_mt();

    Default constructor

  2. severity_channel_logger_mt(severity_channel_logger_mt const & that);

    Copy constructor

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

    Constructor with named arguments

  4. severity_channel_logger_mt & 
    operator=(severity_channel_logger_mt const & that);

    Assignment operator

    Swaps two loggers


PrevUpHomeNext