Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::trivial Namespace Reference

Classes

struct  logger
 Trivial logger tag. More...
 

Typedefs

typedef
sources::severity_logger_mt
< severity_level
logger_type
 Trivial logger type. More...
 

Enumerations

enum  severity_level {
  trace,
  debug,
  info,
  warning,
  error,
  fatal
}
 Trivial severity levels. More...
 

Functions

BOOST_LOG_API const char * 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 > & 
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 > & 
operator>> (std::basic_istream< CharT, TraitsT > &strm, severity_level &lvl)
 Reads stringized representation of the severity level from the stream. More...
 

Typedef Documentation

typedef sources::severity_logger_mt< severity_level > boost::trivial::logger_type

Trivial logger type.

Enumeration Type Documentation

Trivial severity levels.

Enumerator
trace 
debug 
info 
warning 
error 
fatal 

Function Documentation

template<typename CharT , typename TraitsT >
std::basic_ostream< CharT, TraitsT >& boost::trivial::operator<< ( std::basic_ostream< CharT, TraitsT > &  strm,
severity_level  lvl 
)
inline

Outputs stringized representation of the severity level to the stream.

References boost::str(), and to_string().

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.

BOOST_LOG_API const char* boost::trivial::to_string ( severity_level  lvl)

Returns stringized enumeration value or NULL, if the value is not valid.

Referenced by operator<<().