Skip to main content

logsmith 1.0.0 copy "logsmith: ^1.0.0" to clipboard
logsmith: ^1.0.0 copied to clipboard

A declarative structured-logging library — typed attrs, themed output, six formats (text, JSON, YAML, TOML, Mace, logfmt), and categorical stdout/stderr routing.

1.0.0 #

Initial stable release.

  • Immutable structured records with nested attrs, persistent logger attrs, zone attrs, caller capture, and sentinel-based record copying.
  • Single-line, multiline, and boxed loggers with level-based stdout/stderr routing.
  • Six emitters: terminal text, JSON, YAML, TOML, Mace, and logfmt.
  • Fifty bundled terminal themes with dark/light pairs, style inheritance, color-depth quantization, OSC-8 hyperlinks, and OSC-11 adaptive terminal-background selection.
  • Terminal policy detection for NO_COLOR, force-color variables, terminal capabilities, pseudo-terminals, and machine consumers.
  • File and rotating-file sinks, record-aware flushing, ANSI-stripping sinks, and bounded asynchronous delivery.
  • Opt-in isolate identity and terminal-cell-aware scalar truncation for human-readable output.
0
likes
160
points
151
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A declarative structured-logging library — typed attrs, themed output, six formats (text, JSON, YAML, TOML, Mace, logfmt), and categorical stdout/stderr routing.

Repository (GitHub)
View/report issues

Topics

#logging #structured-logging #terminal #ansi #cli

License

BSD-3-Clause (license)

Dependencies

toml

More

Packages that depend on logsmith