https://github.com/borisfaure/lovely-env-logger
A lovely, easy-to-use logger for Rust. Forked from pretty-env-logger
https://github.com/borisfaure/lovely-env-logger
logging rust rust-library
Last synced: 3 months ago
JSON representation
A lovely, easy-to-use logger for Rust. Forked from pretty-env-logger
- Host: GitHub
- URL: https://github.com/borisfaure/lovely-env-logger
- Owner: borisfaure
- License: other
- Created: 2022-05-18T20:32:12.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-08-11T21:34:34.000Z (11 months ago)
- Last Synced: 2025-10-04T13:11:42.534Z (9 months ago)
- Topics: logging, rust, rust-library
- Language: Rust
- Homepage:
- Size: 244 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# lovely-env-logger
[](https://crates.io/crates/lovely_env_logger)
[](https://docs.rs/lovely_env_logger)
[](https://crates.io/crates/lovely_env_logger)
A simple logger built on top of [env_logger](https://docs.rs/env_logger).
It is configured via an environment variable and writes to standard
error with nice colored output for log levels.
Originally a fork from [pretty_env_logger](https://github.com/seanmonstar/pretty-env-logger).
## Screenshots



## Usage
Add the dependency to your `Cargo.toml`:
```toml
[dependencies]
log = "0.4"
lovely_env_logger = "0.6"
```
Add some usage to your application:
```rust
extern crate lovely_env_logger;
#[macro_use] extern crate log;
fn main() {
lovely_env_logger::init_default();
info!("such information");
warn!("o_O");
error!("much error");
}
```
Then run your app with the environmental variable set:
```
RUST_LOG=trace cargo run
```
## License
Licensed under either of
- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)