pub fn try_init_log_from_env()Expand description
A utility function to enable the tracing formatting subscriber.
The tracing_subscriberis initialized from theRUST_LOGenvironment variable. IfRUST_LOG` is not set, then logging is not enabled.
ยงSafety
Calling this function initializes a lazy_static in the tracing crate.
Such static is not deallocated prior to process exiting, thus tools such as valgrind
will report a memory leak.
Refer to this issue: https://github.com/tokio-rs/tracing/issues/2069