Interface for objects that can filter log messages. More...
#include <filterable.hpp>
Public Member Functions | |
| virtual nbool | filt (errLv::level lv, const std::string &tag) const =0 |
| Determines whether a log entry should be filtered out. | |
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.
Determines whether a log entry should be filtered out.
| lv | The error level of the log entry. |
| tag | The tag associated with the log entry. |
Implemented in by::filters, and by::errPassFilter.