Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
structured_logger.h File Reference

Structured logging functionality. More...

#include <kcenon/common/interfaces/logger_interface.h>
#include <string>
#include <unordered_map>
#include <variant>
#include <memory>
#include <functional>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <ctime>
Include dependency graph for structured_logger.h:

Go to the source code of this file.

Classes

struct  kcenon::logger::structured::structured_log_entry
 Structured log entry. More...
 
class  kcenon::logger::structured::structured_logger_interface
 Structured logger interface. More...
 
class  kcenon::logger::structured::log_builder
 Builder for structured log entries. More...
 
class  kcenon::logger::structured::basic_structured_logger
 
class  kcenon::logger::structured::json_formatter
 JSON formatter for structured logs. More...
 

Namespaces

namespace  kcenon
 
namespace  kcenon::logger
 
namespace  kcenon::logger::structured
 

Typedefs

using kcenon::logger::structured::log_value = std::variant<std::string, int, double, bool>
 Value type for structured logging.
 
using kcenon::logger::structured::structured_output_callback = std::function<void(log_level, const std::string&)>
 Output callback type for structured logger.
 

Enumerations

enum class  kcenon::logger::structured::structured_format { kcenon::logger::structured::json , kcenon::logger::structured::logfmt }
 Output format for structured logs. More...
 

Detailed Description

Structured logging functionality.

Definition in file structured_logger.h.