#include <iosfwd>
#include <ostream>
#include <boost/log/detail/config.hpp>
#include <boost/log/keywords/severity.hpp>
#include <boost/log/sources/severity_logger.hpp>
#include <boost/log/sources/record_ostream.hpp>
#include <boost/log/detail/header.hpp>
#include <boost/log/detail/footer.hpp>
Classes | |
struct | boost::trivial::logger |
Trivial logger tag. More... | |
Namespaces | |
boost | |
Duration formatting facet for input. | |
boost::trivial | |
Macros | |
#define | BOOST_LOG_TRIVIAL(lvl) |
The macro is used to initiate logging. More... | |
Typedefs | |
typedef sources::severity_logger_mt < severity_level > | boost::trivial::logger_type |
Trivial logger type. More... | |
Enumerations | |
enum | boost::trivial::severity_level { boost::trivial::trace, boost::trivial::debug, boost::trivial::info, boost::trivial::warning, boost::trivial::error, boost::trivial::fatal } |
Trivial severity levels. More... | |
Functions | |
BOOST_LOG_API const char * | boost::trivial::to_string (severity_level lvl) |
Returns stringized enumeration value or NULL , if the value is not valid. More... | |
template<typename CharT , typename TraitsT > | |
std::basic_ostream< CharT, TraitsT > & | boost::trivial::operator<< (std::basic_ostream< CharT, TraitsT > &strm, severity_level lvl) |
Outputs stringized representation of the severity level to the stream. More... | |
template<typename CharT , typename TraitsT > | |
BOOST_LOG_API std::basic_istream< CharT, TraitsT > & | boost::trivial::operator>> (std::basic_istream< CharT, TraitsT > &strm, severity_level &lvl) |
Reads stringized representation of the severity level from the stream. More... | |
This header defines tools for trivial logging support
#define BOOST_LOG_TRIVIAL | ( | lvl | ) |
The macro is used to initiate logging.
The lvl
argument of the macro specifies one of the following severity levels: trace
, debug
, info
, warning
, error
or fatal
(see severity_level
enum). Following the macro, there may be a streaming expression that composes the record message string. For example: