|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
JSON formatter for structured logs. More...
#include <structured_logger.h>

Static Public Member Functions | |
| static std::string | format (const structured_log_entry &entry) |
Static Private Member Functions | |
| static std::string | level_to_string (log_level level) |
| static std::string | format_timestamp_iso8601 (std::chrono::system_clock::time_point tp) |
| static std::string | escape_json_string (const std::string &s) |
| static std::string | escape_json_key (const std::string &key) |
JSON formatter for structured logs.
Produces valid JSON output with proper escaping and ISO 8601 timestamps.
Definition at line 310 of file structured_logger.h.
|
inlinestaticprivate |
Definition at line 392 of file structured_logger.h.
Referenced by format().

|
inlinestaticprivate |
Definition at line 368 of file structured_logger.h.
Referenced by format().

|
inlinestatic |
Definition at line 312 of file structured_logger.h.
References escape_json_key(), escape_json_string(), kcenon::logger::structured::structured_log_entry::fields, format_timestamp_iso8601(), kcenon::logger::structured::json, kcenon::logger::structured::structured_log_entry::level, level_to_string(), kcenon::logger::structured::structured_log_entry::message, and kcenon::logger::structured::structured_log_entry::timestamp.
Referenced by kcenon::logger::structured::basic_structured_logger::log_structured().


|
inlinestaticprivate |
Definition at line 357 of file structured_logger.h.
Referenced by format().

|
inlinestaticprivate |
Definition at line 344 of file structured_logger.h.
Referenced by format().
