## Reference

### Top level headers

#### Header <boost/log/attributes.hpp>

Andrey Semashev

13.07.2009

This header includes other Boost.Log headers with all attributes.

#### Header <boost/log/common.hpp>

Andrey Semashev

14.03.2009

This header includes other Boost.Log headers that are commonly used in logging applications. Note that the header does not include any headers required to setup the library, as usually they aren't needed in more than one translation unit of the application.

#### Header <boost/log/core.hpp>

Andrey Semashev

19.04.2007

This header includes Boost.Log headers related to the logging core.

#### Header <boost/log/exceptions.hpp>

Andrey Semashev

31.10.2009

The header contains exception classes declarations.

    namespace boost {
      namespace log {
        class conversion_error;
        class invalid_type;
        class invalid_value;
        class limitation_error;
        class logic_error;
        class missing_value;
        class odr_violation;
        class parse_error;
        class runtime_error;
        class setup_error;
        class system_error;
        class unexpected_call;
      }
    }

#### Header <boost/log/expressions.hpp>

Andrey Semashev

10.11.2012

This header includes other Boost.Log headers with all template expression tools.

#### Header <boost/log/sinks.hpp>

Andrey Semashev

13.07.2009

This header includes other Boost.Log headers with all sinks.

#### Header <boost/log/trivial.hpp>

Andrey Semashev

07.11.2009

This header defines tools for trivial logging support

    BOOST_LOG_TRIVIAL(lvl)

    namespace boost {
      namespace log {
        namespace trivial {
          struct logger;

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

          typedef sources::severity_logger_mt< severity_level > logger_type;  // Trivial logger type.
          const char * to_string(severity_level);
          template<typename CharT, typename TraitsT>
            std::basic_ostream< CharT, TraitsT > &
            operator<<(std::basic_ostream< CharT, TraitsT > &, severity_level);
          template<typename CharT, typename TraitsT>
            std::basic_istream< CharT, TraitsT > &
            operator>>(std::basic_istream< CharT, TraitsT > &, severity_level &);
        }
      }
    }