https://github.com/quadrupleslap/badlog
💘 A logging style that is subjectively nice.
https://github.com/quadrupleslap/badlog
logger logging rust simple zero-configuration
Last synced: about 1 year ago
JSON representation
💘 A logging style that is subjectively nice.
- Host: GitHub
- URL: https://github.com/quadrupleslap/badlog
- Owner: quadrupleslap
- Created: 2017-02-09T12:06:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-01-21T01:10:22.000Z (over 8 years ago)
- Last Synced: 2025-05-02T12:56:13.904Z (about 1 year ago)
- Topics: logger, logging, rust, simple, zero-configuration
- Language: Rust
- Homepage: https://docs.rs/badlog
- Size: 25.4 KB
- Stars: 21
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# badlog
[](https://crates.io/crates/badlog)
[](https://docs.rs/badlog)
A garishly colored and extremely simple logger - the best kind.

## Installation
```toml
[dependencies]
badlog = "1.1"
log = "0.4"
```
## Usage
1. Call [one of the initializers](https://docs.rs/badlog).
2. Use [the standard log crate macros](https://doc.rust-lang.org/log/log/index.html).
3. That's it!
## Example
```rust
#[macro_use] extern crate log;
extern crate badlog;
fn main() {
badlog::init_from_env("LOG_LEVEL");
trace!("Unimportant details.");
debug!("Debugging information.");
info!("Hello, World!");
warn!("Uh, captain, I think we're going down...");
error!("IT'S THE END.");
}
```
## License
MIT.