Interface for objects that can filter log messages 더 자세히 ...
#include <filterable.hpp>
Public 멤버 함수 | |
| 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. |
by::filters, by::errPassFilter에서 구현되었습니다.