MIRA
Public Member Functions | List of all members
LogCustomizableFilter::CustomFilter< Derived > Class Template Referenceabstract

Helper class to get the type info of the derived class. More...

#include <error/LogCustomizableFilter.h>

Inheritance diagram for LogCustomizableFilter::CustomFilter< Derived >:
Inheritance graph
[legend]

Public Member Functions

virtual bool filter (const LogRecord &record)=0
 Called by LogCustomizableFilter whenever a new log entry is getting filtered. More...
 

Detailed Description

template<typename Derived>
class mira::LogCustomizableFilter::CustomFilter< Derived >

Helper class to get the type info of the derived class.

Derive from this class if you want to add your own custom filter.

Member Function Documentation

◆ filter()

virtual bool filter ( const LogRecord record)
pure virtualinherited

Called by LogCustomizableFilter whenever a new log entry is getting filtered.

Return false to filter out the log entry.

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

Implemented in LogCustomizableFilter::OrOperator< F1, F2 >, LogCustomizableFilter::AndOperator< F1, F2 >, LogCustomizableFilter::Thread< F >, LogCustomizableFilter::Severity< F >, LogCustomizableFilter::Namespace< F >, and LogCustomizableFilter::Class< F >.


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