Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
record_ostream.hpp File Reference
#include <string>
#include <ostream>
#include <boost/assert.hpp>
#include <boost/move/core.hpp>
#include <boost/move/utility.hpp>
#include <boost/utility/addressof.hpp>
#include <boost/log/detail/config.hpp>
#include <boost/log/detail/native_typeof.hpp>
#include <boost/log/detail/unhandled_exception_count.hpp>
#include <boost/log/core/record.hpp>
#include <boost/log/utility/unique_identifier_name.hpp>
#include <boost/utility/explicit_operator_bool.hpp>
#include <boost/log/utility/formatting_ostream.hpp>
#include <boost/log/detail/header.hpp>
#include <boost/log/detail/footer.hpp>
Include dependency graph for record_ostream.hpp:
This graph shows which files directly or indirectly include this file:

Classes

class  boost::basic_record_ostream< CharT >
 Logging record adapter with a streaming capability. More...
 
struct  boost::aux::stream_provider< CharT >
 Internal class that provides formatting streams for record pumps. More...
 
struct  boost::aux::stream_provider< CharT >::stream_compound
 Formatting stream compound. More...
 
class  boost::aux::record_pump< LoggerT >
 Logging record pump implementation. More...
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::aux
 

Macros

#define BOOST_LOG_STREAM_INTERNAL(logger, rec_var)
 
#define BOOST_LOG_STREAM_WITH_PARAMS_INTERNAL(logger, rec_var, params_seq)
 
#define BOOST_LOG_STREAM(logger)   BOOST_LOG_STREAM_INTERNAL(logger, BOOST_LOG_UNIQUE_IDENTIFIER_NAME(_boost_log_record_))
 The macro writes a record to the log. More...
 
#define BOOST_LOG_STREAM_WITH_PARAMS(logger, params_seq)   BOOST_LOG_STREAM_WITH_PARAMS_INTERNAL(logger, BOOST_LOG_UNIQUE_IDENTIFIER_NAME(_boost_log_record_), params_seq)
 The macro writes a record to the log and allows to pass additional named arguments to the logger. More...
 
#define BOOST_LOG(logger)   BOOST_LOG_STREAM(logger)
 An equivalent to BOOST_LOG_STREAM(logger) More...
 
#define BOOST_LOG_WITH_PARAMS(logger, params_seq)   BOOST_LOG_STREAM_WITH_PARAMS(logger, params_seq)
 An equivalent to BOOST_LOG_STREAM_WITH_PARAMS(logger, params_seq) More...
 

Functions

template<typename LoggerT >
BOOST_FORCEINLINE record_pump
< LoggerT > 
boost::aux::make_record_pump (LoggerT &lg, record &rec)
 

Detailed Description

Author
Andrey Semashev
Date
09.03.2009

This header contains a wrapper class around a logging record that allows to compose the record message with a streaming expression.

Macro Definition Documentation

#define BOOST_LOG (   logger)    BOOST_LOG_STREAM(logger)

An equivalent to BOOST_LOG_STREAM(logger)

#define BOOST_LOG_STREAM (   logger)    BOOST_LOG_STREAM_INTERNAL(logger, BOOST_LOG_UNIQUE_IDENTIFIER_NAME(_boost_log_record_))

The macro writes a record to the log.

#define BOOST_LOG_STREAM_INTERNAL (   logger,
  rec_var 
)
Value:
for (::boost::log::record rec_var = (logger).open_record(); !!rec_var;)\
::boost::log::aux::make_record_pump((logger), rec_var).stream()
BOOST_FORCEINLINE record_pump< LoggerT > make_record_pump(LoggerT &lg, record &rec)
Definition: record_ostream.hpp:292
const record_type record
Log record placeholder in formatter template expressions.
Definition: record.hpp:40
#define BOOST_LOG_STREAM_WITH_PARAMS (   logger,
  params_seq 
)    BOOST_LOG_STREAM_WITH_PARAMS_INTERNAL(logger, BOOST_LOG_UNIQUE_IDENTIFIER_NAME(_boost_log_record_), params_seq)

The macro writes a record to the log and allows to pass additional named arguments to the logger.

#define BOOST_LOG_STREAM_WITH_PARAMS_INTERNAL (   logger,
  rec_var,
  params_seq 
)
Value:
for (::boost::log::record rec_var = (logger).open_record((BOOST_PP_SEQ_ENUM(params_seq))); !!rec_var;)\
::boost::log::aux::make_record_pump((logger), rec_var).stream()
BOOST_FORCEINLINE record_pump< LoggerT > make_record_pump(LoggerT &lg, record &rec)
Definition: record_ostream.hpp:292
#define BOOST_PP_SEQ_ENUM(seq)
Definition: enum.hpp:28
const record_type record
Log record placeholder in formatter template expressions.
Definition: record.hpp:40
#define BOOST_LOG_WITH_PARAMS (   logger,
  params_seq 
)    BOOST_LOG_STREAM_WITH_PARAMS(logger, params_seq)