Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::sources::aux::logger_singleton< TagT > Struct Template Reference

The class implements a logger singleton. More...

#include <global_logger_storage.hpp>

Inheritance diagram for boost::sources::aux::logger_singleton< TagT >:
Collaboration diagram for boost::sources::aux::logger_singleton< TagT >:

Public Types

typedef
boost::log::aux::lazy_singleton
< logger_singleton< TagT >
, shared_ptr< logger_holder
< typename TagT::logger_type > > > 
base_type
 Base type. More...
 
typedef TagT::logger_type logger_type
 Logger type. More...
 

Static Public Member Functions

static logger_typeget ()
 Returns the logger instance. More...
 
static void init_instance ()
 Initializes the logger instance (called only once) More...
 

Detailed Description

template<typename TagT>
struct boost::sources::aux::logger_singleton< TagT >

The class implements a logger singleton.

Member Typedef Documentation

template<typename TagT >
typedef boost::log::aux::lazy_singleton< logger_singleton< TagT >, shared_ptr< logger_holder< typename TagT::logger_type > > > boost::sources::aux::logger_singleton< TagT >::base_type

Base type.

template<typename TagT >
typedef TagT::logger_type boost::sources::aux::logger_singleton< TagT >::logger_type

Logger type.

Member Function Documentation

template<typename TagT >
static logger_type& boost::sources::aux::logger_singleton< TagT >::get ( )
inlinestatic

Returns the logger instance.

References get().

template<typename TagT >
static void boost::sources::aux::logger_singleton< TagT >::init_instance ( )
inlinestatic

The documentation for this struct was generated from the following file: