https://github.com/un-rust/urlogger
🖍️ Lightweight colored logger: `log(level, message)` with `RUST_LOG` filtering.
https://github.com/un-rust/urlogger
console log logger logging
Last synced: 3 months ago
JSON representation
🖍️ Lightweight colored logger: `log(level, message)` with `RUST_LOG` filtering.
- Host: GitHub
- URL: https://github.com/un-rust/urlogger
- Owner: un-rust
- License: apache-2.0
- Created: 2026-02-22T02:07:00.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-02-22T04:54:13.000Z (4 months ago)
- Last Synced: 2026-02-22T10:11:30.619Z (4 months ago)
- Topics: console, log, logger, logging
- Language: Rust
- Homepage:
- Size: 63.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# 🖍️ urlogger





Lightweight colored logger: `log(level, message)` with `RUST_LOG` filtering.
**[Full documentation →](https://docs.rs/urlogger/)**
## Quick start
```sh
cargo add urlogger
```
## Usage
```rust
//! Demo: logs at all levels. Use `RUST_LOG=info` to filter.
use urlogger::{LogLevel, log};
fn main() {
log(LogLevel::Trace, "Hello, world!");
log(LogLevel::Debug, "Hello, world!");
log(LogLevel::Info, "Hello, world!");
log(LogLevel::Warn, "Hello, world!");
log(LogLevel::Error, "Hello, world!");
}
```
## License
Published under the [Apache-2.0](./LICENSE) license.
Made by [@UnRUST](https://github.com/un-rust) 💛
---
_🛠️ auto updated with [automd-rs](https://github.com/betterhyq/automd-rs)_