@@ -529,8 +529,8 @@ namespace mtconnect::configuration {
529529
530530 ConfigOptions options;
531531 AddDefaultedOptions (logger, options,
532- {{" max_size" , " 10mb " s},
533- {" rotation_size " , " 2mb " s},
532+ {{" max_size" , " 2mb " s},
533+ {" max_archive_size " , " 10mb " s},
534534 {" max_index" , 9 },
535535 {" file_name" , defaultFileName},
536536 {" archive_pattern" , defaultArchivePattern}});
@@ -594,16 +594,16 @@ namespace mtconnect::configuration {
594594 }
595595 }
596596
597- auto &maxLogFileSize = logChannel.m_maxLogFileSize ;
597+ auto &maxLogArchiveSize = logChannel.m_maxLogArchiveSize ;
598598 auto &logRotationSize = logChannel.m_logRotationSize ;
599599 auto &rotationLogInterval = logChannel.m_rotationLogInterval ;
600600 auto &logArchivePattern = logChannel.m_logArchivePattern ;
601601 auto &logDirectory = logChannel.m_logDirectory ;
602602 auto &archiveLogDirectory = logChannel.m_archiveLogDirectory ;
603603 auto &logFileName = logChannel.m_logFileName ;
604604
605- maxLogFileSize = ConvertFileSize (options, " max_size " , maxLogFileSize );
606- logRotationSize = ConvertFileSize (options, " rotation_size " , logRotationSize);
605+ maxLogArchiveSize = ConvertFileSize (options, " max_archive_size " , maxLogArchiveSize );
606+ logRotationSize = ConvertFileSize (options, " max_size " , logRotationSize);
607607 int max_index = *GetOption<int >(options, " max_index" );
608608
609609 if (auto sched = GetOption<string>(options, " schedule" ))
@@ -673,7 +673,7 @@ namespace mtconnect::configuration {
673673
674674 // Set up where the rotated files will be stored
675675 sink->locked_backend ()->set_file_collector (logr::sinks::file::make_collector (
676- kw::target = archiveLogDirectory.string (), kw::max_size = maxLogFileSize ,
676+ kw::target = archiveLogDirectory.string (), kw::max_size = maxLogArchiveSize ,
677677 kw::max_files = max_index));
678678
679679 if (rotationLogInterval > 0 )
0 commit comments