blob: 3f3ff0fe67ec9e24cc77584c5081de50962fdc83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt};
/// Setup tracing subscriber logger
pub fn setup() {
tracing_subscriber::registry()
.with(tracing_subscriber::EnvFilter::new(
crate::config::CONFIG.rust_log.clone(),
))
.with(tracing_subscriber::fmt::layer())
.init();
}
|