Severity level feature implementation. More...
#include <severity_feature.hpp>
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... | |
Severity level feature implementation.
typedef base_type::char_type boost::sources::basic_severity_logger< BaseT, LevelT >::char_type |
Character type.
typedef base_type::final_type boost::sources::basic_severity_logger< BaseT, LevelT >::final_type |
Final type.
typedef aux::severity_level< severity_level > boost::sources::basic_severity_logger< BaseT, LevelT >::severity_attribute |
Severity attribute type.
typedef LevelT boost::sources::basic_severity_logger< BaseT, LevelT >::severity_level |
Severity level type.
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.
typedef base_type::threading_model boost::sources::basic_severity_logger< BaseT, LevelT >::threading_model |
Threading model being used.
|
inline |
Default constructor.
The constructed logger will have a severity attribute registered. The default level for log records will be 0.
|
inline |
Copy constructor.
|
inline |
Move constructor.
|
inlineexplicit |
Constructor with named arguments.
Allows to setup the default level for log records.
args | A set of named arguments. The following arguments are supported:
|
|
inline |
Default severity value getter.
|
inlineprotected |
Severity attribute accessor.
|
inlineprotected |
Unlocked open_record
.
References boost::sources::aux::severity_level< LevelT >::set_value().
|
inlineprotected |
Unlocked swap
.
References boost::attribute::swap(), and boost::flyweights::t.