Public Member Functions | List of all members
LogFilterBase Class Referenceabstract

Abstract base class for log filters. More...

#include <error/LoggingCore.h>

Inheritance diagram for LogFilterBase:
Inheritance graph

Public Member Functions

virtual ~LogFilterBase ()
 Destructor. More...
virtual bool filter (const LogRecord &record)=0
 Filters a log entry. More...

Detailed Description

Abstract base class for log filters.

Sinks can be configured to log only messages that match the filter. e.g. Logging to cout will only made if severity level is CRITICAL but logging to file will be made always.

Constructor & Destructor Documentation

◆ ~LogFilterBase()

virtual ~LogFilterBase ( )


Member Function Documentation

◆ filter()

virtual bool filter ( const LogRecord record)
pure virtual

Filters a log entry.

recordThe log entry.
true if passed, false if filtered out

Implemented in LogCustomizableFilter.

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