mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 14:07:18 +08:00 
			
		
		
		
	refactor: include binary name in service field in log entries (#2077)
				
					
				
			This commit is contained in:
		@ -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)
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user