log to stdout with info level

This commit is contained in:
Dmitry Belyaev 2022-09-28 14:56:22 +03:00
parent 93b49dff9e
commit 60b6912b2c
Signed by: b4tman
GPG Key ID: 41A00BF15EA7E5F3

View File

@ -52,9 +52,9 @@ fn create_logger() -> LoggerHandle {
Cleanup::KeepLogFiles(4), Cleanup::KeepLogFiles(4),
) )
.format(flexi_logger::detailed_format) .format(flexi_logger::detailed_format)
.adaptive_format_for_stderr(AdaptiveFormat::Detailed) .adaptive_format_for_stdout(AdaptiveFormat::Detailed)
.print_message() .print_message()
.duplicate_to_stderr(Duplicate::Warn) .duplicate_to_stdout(Duplicate::Info)
.write_mode(flexi_logger::WriteMode::Async) .write_mode(flexi_logger::WriteMode::Async)
.start_with_specfile( .start_with_specfile(
std::env::current_exe() std::env::current_exe()