|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Filter logs by custom function. More...
#include <log_filter.h>


Public Types | |
| using | filter_function |
Public Member Functions | |
| function_filter (filter_function func) | |
| bool | should_log (log_level level, const std::string &message, const std::string &file, int line, const std::string &function) const override |
| Check if a log entry should be processed (legacy API) | |
| std::string | get_name () const override |
| Get the name of this filter. | |
Public Member Functions inherited from kcenon::logger::log_filter | |
| virtual | ~log_filter ()=default |
| virtual bool | should_log (const log_entry &entry) const override |
| Check if a log entry should be processed (new interface) | |
Public Member Functions inherited from kcenon::logger::log_filter_interface | |
| virtual | ~log_filter_interface ()=default |
Private Attributes | |
| filter_function | filter_func_ |
Filter logs by custom function.
Definition at line 136 of file log_filter.h.
Definition at line 138 of file log_filter.h.
|
inlineexplicit |
Definition at line 144 of file log_filter.h.
|
inlineoverridevirtual |
Get the name of this filter.
Reimplemented from kcenon::logger::log_filter.
Definition at line 155 of file log_filter.h.
|
inlineoverridevirtual |
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 |
Implements kcenon::logger::log_filter.
Definition at line 147 of file log_filter.h.
References filter_func_.
|
private |
Definition at line 160 of file log_filter.h.
Referenced by should_log().