9 #ifndef CPPLOGGING_FILTERS_LEVEL_FILTER_H
10 #define CPPLOGGING_FILTERS_LEVEL_FILTER_H
49 bool positive() const noexcept {
return _positive; }
74 std::atomic<bool> _positive;
75 std::atomic<Level> _from;
76 std::atomic<Level> _to;
Logging filter interface.
LevelFilter & operator=(const LevelFilter &)=delete
Level from() const noexcept
Get Level from value.
LevelFilter(Level from, Level to, bool positive=true)
Initialize level filter with a given level range.
Level to() const noexcept
Get Level to value.
LevelFilter(const LevelFilter &)=delete
virtual ~LevelFilter()=default
bool positive() const noexcept
Get the positive filtration flag.
LevelFilter & operator=(LevelFilter &&)=delete
bool FilterRecord(Record &record) override
Filter the given logging record.
void Update(Level level, bool positive=true)
Update level filter with a given level value.
LevelFilter(Level level, bool positive=true)
Initialize level filter with a given level value.
LevelFilter(LevelFilter &&)=delete
Logging filter interface definition.
C++ Logging project definitions.