From ca6280a6df9b1e699b5be46ce161e977abdaefc0 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 14 Feb 2021 13:19:41 +0000 Subject: [PATCH] Reduce maximum diagnostic log file size before rotation to 5 Mbyte --- WSJTXLogging.cpp | 2 +- example_log_configurations/wsjtx_log_config.ini.rig_control | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WSJTXLogging.cpp b/WSJTXLogging.cpp index d18d938ae..93bcb833b 100644 --- a/WSJTXLogging.cpp +++ b/WSJTXLogging.cpp @@ -192,7 +192,7 @@ WSJTXLogging::WSJTXLogging () ( sinks::file::make_collector ( - keywords::max_size = 40 * 1024 * 1024 + keywords::max_size = 5 * 1024 * 1024 , keywords::min_free_space = 1024 * 1024 * 1024 , keywords::max_files = 12 , keywords::target = app_data.absoluteFilePath ("logs").toStdWString () diff --git a/example_log_configurations/wsjtx_log_config.ini.rig_control b/example_log_configurations/wsjtx_log_config.ini.rig_control index 0bcb82066..bcf981b30 100644 --- a/example_log_configurations/wsjtx_log_config.ini.rig_control +++ b/example_log_configurations/wsjtx_log_config.ini.rig_control @@ -7,7 +7,7 @@ TargetFileName="${AppLocalDataLocation}/logs/wsjtx_syslog_%Y-%m.log" RotationTimePoint="01 00:00:00" Append=true EnableFinalRotation=false -MaxSize=41943040 +MaxSize=52428800 MinFreeSpace=1073741824 MaxFiles=12 Target="${AppLocalDataLocation}/logs"