From 60b6912b2c74f03681b699b71fef0c8a1991b929 Mon Sep 17 00:00:00 2001 From: Dmitry Date: Wed, 28 Sep 2022 14:56:22 +0300 Subject: [PATCH] log to stdout with info level --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 63d46b7..fb15e33 100644 --- a/src/main.rs +++ b/src/main.rs @@ -52,9 +52,9 @@ fn create_logger() -> LoggerHandle { Cleanup::KeepLogFiles(4), ) .format(flexi_logger::detailed_format) - .adaptive_format_for_stderr(AdaptiveFormat::Detailed) + .adaptive_format_for_stdout(AdaptiveFormat::Detailed) .print_message() - .duplicate_to_stderr(Duplicate::Warn) + .duplicate_to_stdout(Duplicate::Info) .write_mode(flexi_logger::WriteMode::Async) .start_with_specfile( std::env::current_exe()