9 #ifndef CPPLOGGING_FILTERS_LOGGER_FILTER_H
10 #define CPPLOGGING_FILTERS_LOGGER_FILTER_H
43 bool positive() const noexcept {
return _positive; }
46 const std::string&
pattern() const noexcept {
return _pattern; }
52 std::atomic<bool> _positive;
Logging filter interface.
LoggerFilter & operator=(LoggerFilter &&)=delete
LoggerFilter(LoggerFilter &&)=delete
bool positive() const noexcept
Get the positive filtration flag.
const std::string & pattern() const noexcept
Get the logger pattern.
bool FilterRecord(Record &record) override
Filter the given logging record.
virtual ~LoggerFilter()=default
LoggerFilter & operator=(const LoggerFilter &)=delete
LoggerFilter(const std::string &pattern, bool positive=true)
Initialize logger filter with a given pattern.
LoggerFilter(const LoggerFilter &)=delete
Logging filter interface definition.
C++ Logging project definitions.