MCPcopy Create free account
hub / github.com/actix/examples / init_standard_logger

Function init_standard_logger

examples-common/src/lib.rs:5–14  ·  view source on GitHub ↗

Initializes standard tracing subscriber.

()

Source from the content-addressed store, hash-verified

3
4/// Initializes standard tracing subscriber.
5pub fn init_standard_logger() {
6 tracing_subscriber::registry()
7 .with(
8 EnvFilter::builder()
9 .with_default_directive(LevelFilter::INFO.into())
10 .from_env_lossy(),
11 )
12 .with(tracing_subscriber::fmt::layer().without_time())
13 .init();
14}
15
16/// Load default rustls provider, to be done once for the process.
17pub fn init_rustls_provider() {

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected