Straightforward severity level mapping. More...
#include <syslog_backend.hpp>
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... | |
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.
|
inherited |
Attribute contained value type.
|
inherited |
Mapped value type.
|
inherited |
Result type.
|
inlineexplicit |
Constructor.
name | Attribute name |
|
inlineinherited |
Extraction operator.
rec | A log record to extract value from |