|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Base class for log filtering. More...
#include <log_filter.h>


Public Member Functions | |
| virtual | ~log_filter ()=default |
| virtual bool | should_log (const log_entry &entry) const override |
| Check if a log entry should be processed (new interface) | |
| virtual bool | should_log (log_level level, const std::string &message, const std::string &file, int line, const std::string &function) const =0 |
| Check if a log entry should be processed (legacy API) | |
| virtual std::string | get_name () const override |
| Get the name of this filter. | |
Public Member Functions inherited from kcenon::logger::log_filter_interface | |
| virtual | ~log_filter_interface ()=default |
Base class for log filtering.
This class provides a compatibility layer between the old API and the new interface-based approach. It implements log_filter_interface.
Definition at line 27 of file log_filter.h.
|
virtualdefault |
|
inlineoverridevirtual |
Get the name of this filter.
Implements kcenon::logger::log_filter_interface.
Reimplemented in kcenon::logger::composite_filter, kcenon::logger::function_filter, kcenon::logger::level_filter, and kcenon::logger::regex_filter.
Definition at line 63 of file log_filter.h.
|
inlineoverridevirtual |
Check if a log entry should be processed (new interface)
| entry | The log entry to check |
Implements kcenon::logger::log_filter_interface.
Definition at line 36 of file log_filter.h.
References kcenon::logger::log_entry::level, kcenon::logger::log_entry::location, kcenon::logger::log_entry::message, should_log(), and kcenon::logger::small_string< SSO_SIZE >::to_string().
Referenced by should_log().


|
pure virtual |
Check if a log entry should be processed (legacy API)
| level | Log level |
| message | Log message |
| file | Source file |
| line | Source line |
| function | Function name |
Implemented in kcenon::logger::composite_filter, kcenon::logger::function_filter, kcenon::logger::level_filter, and kcenon::logger::regex_filter.