Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::sinks::syslog::direct_severity_mapping< AttributeValueT > Class Template Reference

Straightforward severity level mapping. More...

#include <syslog_backend.hpp>

Inheritance diagram for boost::sinks::syslog::direct_severity_mapping< AttributeValueT >:
Collaboration diagram for boost::sinks::syslog::direct_severity_mapping< AttributeValueT >:

Public Types

typedef AttributeValueT attribute_value_type
 Attribute contained value type. More...
 
typedef base_type::mapped_type mapped_type
 Mapped value type. More...
 
typedef mapped_type result_type
 Result type. More...
 

Public Member Functions

 direct_severity_mapping (attribute_name const &name)
 Constructor. More...
 
mapped_type operator() (record_view const &rec) const
 Extraction operator. More...
 

Detailed Description

template<typename AttributeValueT = int>
class boost::sinks::syslog::direct_severity_mapping< AttributeValueT >

Straightforward severity level mapping.

This type of mapping assumes that attribute with a particular name always provides values that map directly onto the Syslog levels. The mapping simply returns the extracted attribute value converted to the Syslog severity level.

Member Typedef Documentation

typedef AttributeValueT boost::sinks::basic_direct_mapping< level , AttributeValueT >::attribute_value_type
inherited

Attribute contained value type.

Mapped value type.

Result type.

Constructor & Destructor Documentation

template<typename AttributeValueT = int>
boost::sinks::syslog::direct_severity_mapping< AttributeValueT >::direct_severity_mapping ( attribute_name const &  name)
inlineexplicit

Constructor.

Parameters
nameAttribute name

Member Function Documentation

mapped_type boost::sinks::basic_direct_mapping< level , AttributeValueT >::operator() ( record_view const &  rec) const
inlineinherited

Extraction operator.

Parameters
recA log record to extract value from
Returns
An extracted attribute value

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