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

#489 in Debugging

Download history 17/week @ 2024-07-24 2/week @ 2024-07-31 1/week @ 2024-09-18 19/week @ 2024-09-25 6/week @ 2024-10-02

52 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

~0.1–7MB
~41K SLoC