Boost C++ Libraries

PrevUpHomeNext

Class template fmt_message

boost::log::formatters::fmt_message — Message formatter class.

Synopsis

// In header: <boost/log/formatters/message.hpp>

template<typename CharT> 
class fmt_message : public basic_formatter< CharT, fmt_message< CharT > > {
public:
  // types
  typedef base_type::ostream_type ostream_type;  // Stream type. 
  typedef base_type::record_type  record_type;   // Log record type. 

  // public member functions
  void operator()(ostream_type &, record_type const &) const;
};

Description

The formatter simply puts the log record message to the resulting stream

fmt_message public member functions

  1. void operator()(ostream_type & strm, record_type const & record) const;

    Formatting operator. Puts message text from the log record record to the strm stream.

    Parameters:
    record

    A logging record

    strm

    A reference to the stream, where the final text of the logging record is composed


PrevUpHomeNext