Filter that passes through error-level log messages only. More...
#include <errPassFilter.hpp>
Public Member Functions | |
| nbool | filt (errLv::level lv, const std::string &tag) const override |
| Determines whether a log entry should be filtered out. | |
Filter that passes through error-level log messages only.
As the name implies, a filterable class that only allows error-level logs to pass through. When this filter is registered with logger, warning and info logs will not be output.
Not used directly; instead, create an instance and add it to logger.
Example of using errPassFilter:
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. |
Implements by::filterable.