14个稳定版本
1.4.1 | 2024年1月10日 |
---|---|
1.4.0 | 2024年1月9日 |
1.3.1 | 2023年12月10日 |
1.2.0 | 2023年11月18日 |
#314 在 调试 中
每月 28 次下载
用于 2 crates
14KB
214 行
AUL - 另一个无用的日志记录器
一个可以用于向stdout进行日志记录的日志库
文档
用法
将库导入你的Cargo.toml
[dependencies]
aul = "1.4.1"
您还可以启用彩色功能
[dependencies]
aul = { version = "1.4.1", features = ["color"] }
然后使用特定的宏或隐藏特定数据
use aul::warn;
fn start_server(port: u16) {
log!(Level::TRACE,"Called Method 'start_server' with port: {} ", port);
warn!("Important sensitive data: {}", Sens(&port))
}
常见问题解答
问题:我将数据包装在Sens
结构体中,但它仍然显示值?
答案:您需要在运行时任何时刻将环境变量SAFE_LOGGING
设置为true
依赖
~0–9.5MB
~52K SLoC