9 #ifndef CPPLOGGING_FILTERS_SWITCH_FILTER_H
10 #define CPPLOGGING_FILTERS_SWITCH_FILTER_H
40 bool enabled() const noexcept {
return _enabled; }
52 std::atomic<bool> _enabled;
Logging filter interface.
void Update(bool enabled)
Update switch filter with a given enabled flag.
SwitchFilter(SwitchFilter &&)=delete
virtual ~SwitchFilter()=default
SwitchFilter & operator=(const SwitchFilter &)=delete
SwitchFilter(bool enabled)
Initialize switch filter with a given enabled flag.
bool enabled() const noexcept
Get the filter enabled flag.
SwitchFilter(const SwitchFilter &)=delete
bool FilterRecord(Record &record) override
Filter the given logging record.
SwitchFilter & operator=(SwitchFilter &&)=delete
Logging filter interface definition.
C++ Logging project definitions.