8 releases (5 breaking)

0.6.1 Jul 17, 2023
0.6.0 Jul 13, 2023
0.5.0 Dec 31, 2020
0.4.0 Nov 27, 2020
0.1.1 Aug 27, 2020

#257 in Debugging

Download history 10/week @ 2024-02-25 9/week @ 2024-03-10 1/week @ 2024-03-17 109/week @ 2024-03-31

119 downloads per month

MIT/Apache

27KB
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

~120–335KB