Docs.rs
nuwax-cli-1.0.123
nuwax-cli 1.0.123
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Homepage
Documentation
Repository
crates.io
Source
Owners
soddygo
Dependencies
anyhow ^1.0
normal
bollard ^0.19.4
normal
chrono ^0.4
normal
clap ^4.6
normal
client-core ^0.1.8
normal
color-eyre ^0.6
normal
dirs ^6.0
normal
dotenvy ^0.15
normal
ducker ^0.5.5
normal
flate2 ^1.1
normal
indicatif ^0.18
normal
libc ^0.2
normal
log ^0.4
normal
nom ^8
normal
num_cpus ^1.16
normal
ratatui ^0.30
normal
regex ^1.12
normal
reqwest ^0.13
normal
rust-i18n ^4
normal
rustls ^0.23
normal
self-replace ^1.5.0
normal
serde ^1.0
normal
serde_json ^1.0
normal
serde_with ^3.20
normal
serde_yaml =0.9.33
normal
tar ^0.4
normal
tempfile ^3.27
normal
thiserror ^2.0
normal
tokio ^1.52
normal
tokio-stream ^0.1
normal
toml ^0.9
normal
tracing ^0.1
normal
tracing-appender ^0.2.5
normal
tracing-subscriber ^0.3
normal
uuid ^1.23
normal
walkdir ^2.5
normal
which ^8.0
normal
zip ^8.6
normal
criterion ^0.8.2
dev
futures ^0.3
dev
memory-stats ^1.1
dev
tempfile ^3.27
dev
tokio-test ^0.4
dev
nix ^0.30
normal
Versions
60.95%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Skip to main content
setup_logging
nuwax_
cli
1.0.123
nuwax_cli
Function
setup_
logging
Copy item path
Source
pub fn setup_logging(verbose:
bool
)
Expand description
设置日志记录系统
这个函数遵循Rust CLI应用的最佳实践:
库代码只使用 tracing 宏记录日志
在应用入口配置日志输出行为
支持 RUST_LOG 环境变量控制日志级别
默认输出到stderr,避免与程序输出混淆
终端输出简洁格式,文件输出详细格式