|
Logger System 1.0.0
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Formatter that returns log_entry.message verbatim. More...
#include <raw_formatter.h>


Public Member Functions | |
| raw_formatter ()=default | |
| ~raw_formatter () override=default | |
| std::string | format (const log_entry &entry) const override |
| Format a log entry to a string. | |
| std::string | get_name () const override |
Public Member Functions inherited from kcenon::logger::log_formatter_interface | |
| virtual | ~log_formatter_interface ()=default |
| virtual void | set_options (const format_options &opts) |
| Set formatting options. | |
| virtual format_options | get_options () const |
| Get current formatting options. | |
Additional Inherited Members | |
Protected Attributes inherited from kcenon::logger::log_formatter_interface | |
| format_options | options_ |
Formatter that returns log_entry.message verbatim.
Thread-safety: stateless; safe to use concurrently.
Definition at line 39 of file raw_formatter.h.
|
default |
|
overridedefault |
|
inlineoverridevirtual |
Format a log entry to a string.
| entry | The log entry to format |
Converts the log_entry structure into a formatted string according to the formatter's specific format (text, JSON, XML, etc.).
Implements kcenon::logger::log_formatter_interface.
Definition at line 44 of file raw_formatter.h.
References kcenon::logger::log_entry::message, and kcenon::logger::small_string< SSO_SIZE >::to_string().

|
inlineoverridevirtual |
Implements kcenon::logger::log_formatter_interface.
Definition at line 48 of file raw_formatter.h.