CppLogging  1.0.4.0
C++ Logging Library
switch_filter.cpp
Go to the documentation of this file.
1 
10 
11 namespace CppLogging {
12 
13 void SwitchFilter::Update(bool enabled)
14 {
15  _enabled = enabled;
16 }
17 
19 {
20  return _enabled;
21 }
22 
23 } // namespace CppLogging
Logging record.
Definition: record.h:37
void Update(bool enabled)
Update switch filter with a given enabled flag.
bool enabled() const noexcept
Get the filter enabled flag.
Definition: switch_filter.h:40
bool FilterRecord(Record &record) override
Filter the given logging record.
C++ Logging project definitions.
Definition: appender.h:15
Switch filter definition.