sink_logger 0.1.0
sink_logger: ^0.1.0 copied to clipboard
One log() call fans out to the developer console, a bounded exportable buffer and a broadcast event stream, each with its own message.
Changelog #
0.1.0 #
Initial release.
feat: one log() call fans out to three sinks — the developer console, a
bounded in-memory buffer, and a broadcast Stream<LogEvent>.
feat: per-sink redaction — bufferedMessage narrows what the buffer keeps,
sanitizedMessage narrows what subscribers may publish, and an empty
sanitizedMessage keeps the message on the device entirely.
feat: LogBuffer.export(header:) renders the buffer as shareable text,
synthesizing ── YYYY-MM-DD ── day markers from per-entry date stamps.
feat: LoggerConfig bounds the buffer by entry count and payload size, and
swaps the console sink through consoleWriter — a stdout writer for a
command-line program, a capturing closure in tests.