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


Public Member Functions | |
| regex_filter (const std::string &pattern, bool include=true) | |
| 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 | |
| std::regex | pattern_ |
| bool | include_ |
Filter logs by regex pattern.
Definition at line 105 of file log_filter.h.
|
inlineexplicit |
Definition at line 107 of file log_filter.h.
|
inlineoverridevirtual |
Get the name of this filter.
Reimplemented from kcenon::logger::log_filter.
Definition at line 123 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 110 of file log_filter.h.
|
private |
Definition at line 129 of file log_filter.h.
Referenced by should_log().
|
private |
Definition at line 128 of file log_filter.h.
Referenced by should_log().