logman 0.1.0
Modern C++23 header-only logging manager wrapping spdlog with channels, listeners, and structured events
Loading...
Searching...
No Matches
log_event.hpp
Go to the documentation of this file.
1#pragma once
2
7
8#include <chrono>
9#include <cstdint>
10#include <string>
11
12namespace logman {
13
16struct LogEvent {
17 std::chrono::system_clock::time_point timestamp;
18 std::string level;
19 std::string channel;
20 std::string message;
21 std::uint64_t thread_id = 0;
22 int process_id = -1;
23 std::string file;
24 int line = 0;
25 std::string function;
26};
27
28} // namespace logman
One log record, captured by ListenerSink and (optionally) emitted as JSON by JsonFormatter.
Definition log_event.hpp:16