|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Custom filter that filters by message content. More...


Public Member Functions | |
| content_filter (std::string keyword) | |
| bool | should_log (const log_entry &entry) const override |
| Check if a log entry should be processed. | |
| 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 |
Private Attributes | |
| std::string | keyword_ |
Custom filter that filters by message content.
Definition at line 66 of file decorator_usage.cpp.
|
inlineexplicit |
Definition at line 68 of file decorator_usage.cpp.
|
inlineoverridevirtual |
Get the name of this filter.
Implements kcenon::logger::log_filter_interface.
Definition at line 75 of file decorator_usage.cpp.
|
inlineoverridevirtual |
Check if a log entry should be processed.
| entry | The log entry to check |
Implements kcenon::logger::log_filter_interface.
Definition at line 70 of file decorator_usage.cpp.
References kcenon::logger::small_string< SSO_SIZE >::data(), keyword_, kcenon::logger::log_entry::message, and kcenon::logger::small_string< SSO_SIZE >::size().

|
private |
Definition at line 80 of file decorator_usage.cpp.
Referenced by should_log().