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
52 downloads per month
27KB
203 lines
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
- 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.
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