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