Logging record pump implementation. More...
#include <record_ostream.hpp>
Public Member Functions | |
record_pump (logger_type &lg, record &rec) | |
Constructor. More... | |
record_pump (BOOST_RV_REF(record_pump) that) BOOST_NOEXCEPT | |
Move constructor. More... | |
~record_pump () BOOST_NOEXCEPT_IF(false) | |
Destructor. Pushes the composed message to log. More... | |
basic_record_ostream< char_type > & | stream () const BOOST_NOEXCEPT |
Returns the stream to be used for message text formatting. More... | |
Protected Attributes | |
logger_type * | m_pLogger |
A reference to the logger. More... | |
stream_compound * | m_pStreamCompound |
Stream compound. More... | |
const unsigned int | m_ExceptionCount |
Exception state. More... | |
Friends | |
class | auto_release |
Logging record pump implementation.
The pump is used to format the logging record message text and then push it to the logging core. It is constructed on each attempt to write a log record and destroyed afterwards.
The pump class template is instantiated on the logger type.
|
inlineexplicit |
Constructor.
|
inline |
Move constructor.
|
inline |
Destructor. Pushes the composed message to log.
References boost::basic_record_ostream< CharT >::get_record(), boost::move(), and boost::aux::stream_provider< CharT >::stream_compound::stream.
|
inline |
Returns the stream to be used for message text formatting.
References BOOST_ASSERT, and boost::aux::stream_provider< CharT >::stream_compound::stream.
|
friend |
|
protected |
Exception state.
|
protected |
A reference to the logger.
|
protected |
Stream compound.