#logging

yall

A simple lightweight backend for the log crate

6 releases (breaking)

0.5.0 Dec 31, 2020
0.4.0 Nov 27, 2020
0.3.0 Sep 1, 2020
0.2.0 Aug 31, 2020
0.1.1 Aug 27, 2020

#258 in #logging

33 downloads per month

MIT/Apache

26KB
203 lines

yall: Yet Another Little Logger

Crates.io Docs.rs

A simple lightweight backend for the log crate.

  • Logs to stderr
  • Simple standard terminal colors, no RGB or 256-color themes that may clash with the terminal theme
  • Info level messages are unformatted with no color or prefix
  • Error/Warn/Debug/Trace messages are Red/Yellow/Cyan/Blue, respectively
  • Debug and Trace levels show the filename and line number.
  • Minimal dependencies
  • Configured with code rather than environment variables

Style Example

Standard ANSI colors on a Solarized Dark terminal theme.

screenshot of examples/demo.rs

License

Copyright 2020 Allen Wild

Dual-licensed as MIT or Apache 2.0. See the LICENSE-MIT and LICENSE-APACHE files for details.


lib.rs:

yall: Yet Another Little Logger

A simple lightweight backend for the log crate.

  • Logs to stderr
  • Simple standard terminal colors, no RGB or 256-color themes that may clash with the terminal theme
  • By default, color is auto-detected based on whether stderr is a tty, but can be forced on or off with the [Logger::color] method.
  • Info level messages are unformatted with no color or prefix
  • Error/Warn/Debug/Trace messages are Red/Yellow/Cyan/Blue, respectively
  • Debug and Trace levels show the filename and line number.
  • Minimal dependencies
  • Configured with code rather than environment variables

Dependencies

~195KB