Loading...
Searching...
No Matches
by::filterable Class Referenceabstract

Interface for objects that can filter log messages. More...

#include <filterable.hpp>

Inheritance diagram for by::filterable:
by::errPassFilter by::filters

Public Member Functions

virtual nbool filt (errLv::level lv, const std::string &tag) const =0
 Determines whether a log entry should be filtered out.
 

Detailed Description

Interface for objects that can filter log messages.

Allows the logger class to filter logging based on specific conditions. Provides the filt() function which receives log information as parameters. If this function returns true for a given log entry, that log will not be sent to the stream.

Implement this interface to create custom log filtering logic based on error level and tag criteria.

Member Function Documentation

◆ filt()

virtual nbool by::filterable::filt ( errLv::level lv,
const std::string & tag ) const
pure virtual

Determines whether a log entry should be filtered out.

Parameters
lvThe error level of the log entry.
tagThe tag associated with the log entry.
Returns
true if the log entry should be filtered out (not sent to stream), false otherwise.

Implemented in by::filters, and by::errPassFilter.


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