refactor: include binary name in service field in log entries (#2077)

This commit is contained in:
Sanchith Hegde
2023-09-04 17:14:47 +05:30
committed by GitHub
parent e1cebd4179
commit 20d44acd20
10 changed files with 43 additions and 54 deletions

View File

@ -1,14 +1,2 @@
#[doc(inline)]
pub use router_env::*;
pub mod logger {
#[doc(inline)]
pub use router_env::{log, logger::*};
/// Setup logging sub-system.
pub fn setup(
conf: &config::Log,
crates_to_filter: impl AsRef<[&'static str]>,
) -> TelemetryGuard {
router_env::setup(conf, router_env::service_name!(), crates_to_filter)
}
}