logman 0.1.0
Modern C++23 header-only logging manager wrapping spdlog with channels, listeners, and structured events
Loading...
Searching...
No Matches
json_formatter.hpp File Reference

spdlog formatter that emits one JSON object per log record. More...

#include <logman/listener_sink.hpp>
#include <logman/log_event.hpp>
#include <logman/log_event_json.hpp>
#include <nlohmann/json.hpp>
#include <spdlog/details/fmt_helper.h>
#include <spdlog/details/log_msg.h>
#include <spdlog/formatter.h>
#include <spdlog/pattern_formatter.h>
#include <memory>
#include <string>
Include dependency graph for json_formatter.hpp:

Go to the source code of this file.

Classes

class  logman::JsonFormatter
 spdlog formatter that builds a LogEvent from the record, dumps it as compact JSON via to_json, and appends a trailing newline. More...
 

Detailed Description

spdlog formatter that emits one JSON object per log record.

Gated by __has_include(<nlohmann/json.hpp>) in the umbrella header.