14 stable releases
| 1.4.1 | Jan 10, 2024 |
|---|---|
| 1.4.0 | Jan 9, 2024 |
| 1.3.1 | Dec 10, 2023 |
| 1.2.0 | Nov 18, 2023 |
#777 in Debugging
209 downloads per month
Used in 2 crates
14KB
214 lines
AUL - Another useless logger
Another logging library that can be used for logging to stdout
Documentation:
Usage:
Import the library into your Cargo.toml
[dependencies]
aul = "1.4.1"
You can also enable the coloring feature
[dependencies]
aul = { version = "1.4.1", features = ["color"] }
Then use the specific macro or censor specific data
use aul::warn;
fn start_server(port: u16) {
log!(Level::TRACE,"Called Method 'start_server' with port: {} ", port);
warn!("Important sensitive data: {}", Sens(&port))
}
FAQ
Q: I wrapped my data inside the Sens struct, but it still shows the values?
A: You need to set the env variable SAFE_LOGGING to true at any point in runtime
Dependencies
~0–10MB
~48K SLoC