MIRA
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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
[legend]

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

virtual ~LogFilterBase ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual bool filter ( const LogRecord record)
pure virtual

Filters a log entry.

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

Implemented in LogCustomizableFilter.


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