Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::sources::basic_severity_logger< BaseT, LevelT > Class Template Reference

Severity level feature implementation. More...

#include <severity_feature.hpp>

Inheritance diagram for boost::sources::basic_severity_logger< BaseT, LevelT >:
Collaboration diagram for boost::sources::basic_severity_logger< BaseT, LevelT >:

Public Types

typedef base_type::char_type char_type
 Character type. More...
 
typedef base_type::final_type final_type
 Final type. More...
 
typedef base_type::threading_model threading_model
 Threading model being used. More...
 
typedef LevelT severity_level
 Severity level type. More...
 
typedef aux::severity_level
< severity_level
severity_attribute
 Severity attribute type. More...
 
typedef strictest_lock
< typename
base_type::swap_lock,
boost::log::aux::exclusive_lock_guard
< threading_model > >::type 
swap_lock
 Lock requirement for the swap_unlocked method. More...
 

Public Member Functions

 basic_severity_logger ()
 Default constructor. More...
 
 basic_severity_logger (basic_severity_logger const &that)
 Copy constructor. More...
 
 basic_severity_logger (BOOST_RV_REF(basic_severity_logger) that)
 Move constructor. More...
 
template<typename ArgsT >
 basic_severity_logger (ArgsT const &args)
 Constructor with named arguments. More...
 
severity_level default_severity () const
 Default severity value getter. More...
 

Protected Member Functions

severity_attribute const & get_severity_attribute () const
 Severity attribute accessor. More...
 
template<typename ArgsT >
record open_record_unlocked (ArgsT const &args)
 Unlocked open_record. More...
 
void swap_unlocked (basic_severity_logger &that)
 Unlocked swap. More...
 

Detailed Description

template<typename BaseT, typename LevelT = int>
class boost::sources::basic_severity_logger< BaseT, LevelT >

Severity level feature implementation.

Member Typedef Documentation

template<typename BaseT , typename LevelT = int>
typedef base_type::char_type boost::sources::basic_severity_logger< BaseT, LevelT >::char_type

Character type.

template<typename BaseT , typename LevelT = int>
typedef base_type::final_type boost::sources::basic_severity_logger< BaseT, LevelT >::final_type

Final type.

template<typename BaseT , typename LevelT = int>
typedef aux::severity_level< severity_level > boost::sources::basic_severity_logger< BaseT, LevelT >::severity_attribute

Severity attribute type.

template<typename BaseT , typename LevelT = int>
typedef LevelT boost::sources::basic_severity_logger< BaseT, LevelT >::severity_level

Severity level type.

template<typename BaseT , typename LevelT = int>
typedef strictest_lock< typename base_type::swap_lock, boost::log::aux::exclusive_lock_guard< threading_model > >::type boost::sources::basic_severity_logger< BaseT, LevelT >::swap_lock

Lock requirement for the swap_unlocked method.

template<typename BaseT , typename LevelT = int>
typedef base_type::threading_model boost::sources::basic_severity_logger< BaseT, LevelT >::threading_model

Threading model being used.

Constructor & Destructor Documentation

template<typename BaseT , typename LevelT = int>
boost::sources::basic_severity_logger< BaseT, LevelT >::basic_severity_logger ( )
inline

Default constructor.

The constructed logger will have a severity attribute registered. The default level for log records will be 0.

template<typename BaseT , typename LevelT = int>
boost::sources::basic_severity_logger< BaseT, LevelT >::basic_severity_logger ( basic_severity_logger< BaseT, LevelT > const &  that)
inline

Copy constructor.

template<typename BaseT , typename LevelT = int>
boost::sources::basic_severity_logger< BaseT, LevelT >::basic_severity_logger ( BOOST_RV_REF(basic_severity_logger< BaseT, LevelT >)  that)
inline

Move constructor.

template<typename BaseT , typename LevelT = int>
template<typename ArgsT >
boost::sources::basic_severity_logger< BaseT, LevelT >::basic_severity_logger ( ArgsT const &  args)
inlineexplicit

Constructor with named arguments.

Allows to setup the default level for log records.

Parameters
argsA set of named arguments. The following arguments are supported:
  • severity - default severity value

Member Function Documentation

template<typename BaseT , typename LevelT = int>
severity_level boost::sources::basic_severity_logger< BaseT, LevelT >::default_severity ( ) const
inline

Default severity value getter.

template<typename BaseT , typename LevelT = int>
severity_attribute const& boost::sources::basic_severity_logger< BaseT, LevelT >::get_severity_attribute ( ) const
inlineprotected

Severity attribute accessor.

template<typename BaseT , typename LevelT = int>
template<typename ArgsT >
record boost::sources::basic_severity_logger< BaseT, LevelT >::open_record_unlocked ( ArgsT const &  args)
inlineprotected
template<typename BaseT , typename LevelT = int>
void boost::sources::basic_severity_logger< BaseT, LevelT >::swap_unlocked ( basic_severity_logger< BaseT, LevelT > &  that)
inlineprotected

Unlocked swap.

References boost::attribute::swap(), and boost::flyweights::t.


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