Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards


Struct logger

boost::log::trivial::logger — Trivial logger tag.


// In header: <boost/log/trivial.hpp>

struct logger {
  // types
  typedef trivial::logger_type logger_type;  // Logger type. 

  // public static functions
  static logger_type & get();


This tag can be used to acquire the logger that is used with trivial logging macros. This may be useful when the logger is used with other macros which require a logger.

logger public static functions

  1. static logger_type & get();

    Returns a reference to the trivial logger instance