diff --git a/lib/core/core/lib.rs b/lib/core/core/lib.rs index d67987319d6bd6abc45b9f18132e6b9a1adbd95f..1de04dc499d81257af031881d3b573d2bde5a897 100644 --- a/lib/core/core/lib.rs +++ b/lib/core/core/lib.rs @@ -739,7 +739,7 @@ pub fn init_logger(profile: &str, soft_name: &'static str, cli_args: &ArgMatches .expect("Fatal error : fail to create log file path !"); } - CombinedLogger::init(vec![WriteLogger::new( + WriteLogger::init( log_level.to_level_filter(), logger_config, OpenOptions::new() @@ -751,7 +751,7 @@ pub fn init_logger(profile: &str, soft_name: &'static str, cli_args: &ArgMatches .expect("Fatal error : fail to get log file path !"), ) .expect("Fatal error : fail to open log file !"), - )]) + ) .expect("Fatal error : fail to init logger !"); info!("Successfully init logger");