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


Public Member Functions | |
| level_filter (log_level min_level) | |
| 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) | |
| void | set_min_level (log_level level) |
| 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 | |
| log_level | min_level_ |
Filter logs by minimum level.
Definition at line 72 of file log_filter.h.
|
inlineexplicit |
Definition at line 74 of file log_filter.h.
|
inlineoverridevirtual |
Get the name of this filter.
Reimplemented from kcenon::logger::log_filter.
Definition at line 93 of file log_filter.h.
|
inline |
|
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 77 of file log_filter.h.
References min_level_.
|
private |
Definition at line 98 of file log_filter.h.
Referenced by set_min_level(), should_log(), and level_filter::should_log().