Switch filter.
More...
#include <switch_filter.h>
Switch filter.
Switch filters is used to turn on/off logging.
Thread-safe.
Definition at line 24 of file switch_filter.h.
◆ SwitchFilter() [1/3]
CppLogging::SwitchFilter::SwitchFilter |
( |
bool |
enabled | ) |
|
|
inlineexplicit |
Initialize switch filter with a given enabled flag.
- Parameters
-
Definition at line 31 of file switch_filter.h.
◆ SwitchFilter() [2/3]
CppLogging::SwitchFilter::SwitchFilter |
( |
const SwitchFilter & |
| ) |
|
|
delete |
◆ SwitchFilter() [3/3]
◆ ~SwitchFilter()
virtual CppLogging::SwitchFilter::~SwitchFilter |
( |
| ) |
|
|
virtualdefault |
◆ enabled()
bool CppLogging::SwitchFilter::enabled |
( |
| ) |
const |
|
inlinenoexcept |
◆ FilterRecord()
bool CppLogging::SwitchFilter::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 18 of file switch_filter.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ Update()
void CppLogging::SwitchFilter::Update |
( |
bool |
enabled | ) |
|
Update switch filter with a given enabled flag.
- Parameters
-
Definition at line 13 of file switch_filter.cpp.
The documentation for this class was generated from the following files: