Expand description
Per-tag file sink — JSON-lines output, one file per tag.
A FileSink owns a directory ($SCRIBE_LOG_DIR or ./logs) and a
Mutex<HashMap<tag, File>>. The first write for a given tag opens
(or creates) {dir}/{tag}.log; subsequent writes reuse the handle.
Every line is a JSON-serialised LogRecord followed by \n. The
sink flushes after each write so a crash does not lose the last
record.
Structs§
- File
Sink - Per-tag file sink.