Crates.io | aul |
lib.rs | aul |
version | 1.4.1 |
source | src |
created_at | 2023-11-10 19:54:52.219269 |
updated_at | 2024-01-10 12:04:27.518211 |
description | Another useless Logger |
homepage | |
repository | https://github.com/AdrisGithub/aul |
max_upload_size | |
id | 1031431 |
size | 13,663 |
Another logging library that can be used for logging to stdout
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))
}
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