A Rust logger with colored output configured via environment variables, built on top of env_logger.
pretty-env-logger is a Rust logging library that provides colored, easy-to-read log output configured through environment variables. It builds on top of env_logger to offer a more visually appealing logging experience, helping developers quickly identify log levels like info, warnings, and errors during application development and debugging.
Rust developers who need a straightforward, visually enhanced logging solution for their applications, particularly those working on command-line tools or services where log readability is important.
Developers choose pretty-env-logger for its simplicity, colored output that improves log readability, and seamless integration with Rust's log ecosystem without complex configuration.
A pretty, easy-to-use logger for Rust.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Distinct colors for log levels like info, warn, and error enable quick identification of messages during debugging, as shown in the README's example output.
Setup requires just a single `init()` function call, making it easy to integrate into Rust projects without complex configuration.
Logging is configured via the RUST_LOG environment variable, allowing flexible control over log levels without code changes.
Seamlessly integrates with Rust's standard `log` crate macros, ensuring compatibility with existing logging patterns in the ecosystem.
Beyond basic colored output, it offers minimal support for custom formats, structured logging, or advanced features like timestamps or module-specific filtering without workarounds.
It writes only to standard error (stderr), lacking native support for logging to files or other outputs, which is essential for production deployments.
As a wrapper around env_logger, it inherits its limitations, such as no performance optimizations or features beyond what env_logger provides.