sink_logger 0.1.0 copy "sink_logger: ^0.1.0" to clipboard
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.

1
likes
160
points
106
downloads

Documentation

API reference

Publisher

verified publisherkalaganov.dev

Weekly Downloads

One log() call fans out to the developer console, a bounded exportable buffer and a broadcast event stream, each with its own message.

Repository (GitHub)
View/report issues

Topics

#logging #diagnostics #observability #redaction

License

MIT (license)

Dependencies

meta

More

Packages that depend on sink_logger