mlog: --max-log-files to set the max number of rotated log files

This commit is contained in:
stoffu
2018-06-01 12:29:26 +09:00
parent 8a7b3ff138
commit 63d0ab09b5
5 changed files with 63 additions and 5 deletions
+5
View File
@@ -72,6 +72,11 @@ namespace daemon_args
, "Specify maximum log file size [B]"
, MAX_LOG_FILE_SIZE
};
const command_line::arg_descriptor<std::size_t> arg_max_log_files = {
"max-log-files"
, "Specify maximum number of rotated log files to be saved (no limit by setting to 0)"
, MAX_LOG_FILES
};
const command_line::arg_descriptor<std::string> arg_log_level = {
"log-level"
, ""