jsonl_sink¶
template <typename Mutex> class jsonl_sink : public spdlog::sinks::base_sink<Mutex>
spdlog sink that writes JSONL log messages to PG_JSONL_DEST().
Each log message becomes a single-line JSON object:
Functions¶
| Name | Description |
|---|---|
| sink_it_ | Format and write a single log message as a JSONL line to PG_JSONL_DEST(). |
| flush_ | Flush the JSONL output stream. |
Function Details¶
flush_¶
void flush_() override
Flush the JSONL output stream.
sink_it_¶
void sink_it_(const spdlog::details::log_msg& msg) override
Format and write a single log message as a JSONL line to PG_JSONL_DEST().