Logger filter.
More...
#include <logger_filter.h>
Logger filter.
Logger filters out logging records which logger filed is not matched to the given pattern.
Thread-safe.
Definition at line 26 of file logger_filter.h.
◆ LoggerFilter() [1/3]
CppLogging::LoggerFilter::LoggerFilter |
( |
const std::string & |
pattern, |
|
|
bool |
positive = true |
|
) |
| |
|
inlineexplicit |
Initialize logger filter with a given pattern.
- Parameters
-
pattern | - Logger pattern |
positive | - Positive filtration (default is true) |
Definition at line 34 of file logger_filter.h.
◆ LoggerFilter() [2/3]
CppLogging::LoggerFilter::LoggerFilter |
( |
const LoggerFilter & |
| ) |
|
|
delete |
◆ LoggerFilter() [3/3]
◆ ~LoggerFilter()
virtual CppLogging::LoggerFilter::~LoggerFilter |
( |
| ) |
|
|
virtualdefault |
◆ FilterRecord()
bool CppLogging::LoggerFilter::FilterRecord |
( |
Record & |
record | ) |
|
|
overridevirtual |
Filter the given logging record.
- Parameters
-
- Returns
- 'true' if the logging record should be processed, 'false' if the logging record was filtered out
Implements CppLogging::Filter.
Definition at line 13 of file logger_filter.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pattern()
const std::string& CppLogging::LoggerFilter::pattern |
( |
| ) |
const |
|
inlinenoexcept |
◆ positive()
bool CppLogging::LoggerFilter::positive |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following files: