CppLogging  1.0.4.0
C++ Logging Library
Public Member Functions | List of all members
CppLogging::Filter Class Referenceabstract

Logging filter interface. More...

#include <filter.h>

Inheritance diagram for CppLogging::Filter:
CppLogging::Element CppLogging::LevelFilter CppLogging::LoggerFilter CppLogging::MessageFilter CppLogging::SwitchFilter CppLogging::Trigger

Public Member Functions

virtual bool FilterRecord (Record &record)=0
 Filter the given logging record. More...
 
- Public Member Functions inherited from CppLogging::Element
virtual bool IsStarted () const noexcept
 Is the logging element started? More...
 
virtual bool Start ()
 Start the logging element. More...
 
virtual bool Stop ()
 Stop the logging element. More...
 

Detailed Description

Logging filter interface.

Logging filter takes an instance of a single logging record and performs some checks to detect if the record should be filered out and not processed anymore.

See also
SwitchFilter
LoggerFilter
LevelFilter
MessageFilter

Definition at line 28 of file filter.h.

Member Function Documentation

◆ FilterRecord()

virtual bool CppLogging::Filter::FilterRecord ( Record record)
pure virtual

Filter the given logging record.

Parameters
record- Logging record
Returns
'true' if the logging record should be processed, 'false' if the logging record was filtered out

Implemented in CppLogging::Trigger, CppLogging::SwitchFilter, CppLogging::MessageFilter, CppLogging::LoggerFilter, and CppLogging::LevelFilter.


The documentation for this class was generated from the following file: