multi: update log file max num and size defaults

This commit is contained in:
Elle Mouton
2024-10-30 13:23:18 +02:00
parent 8106810d9e
commit e547d21920
3 changed files with 9 additions and 7 deletions

View File

@@ -15,10 +15,10 @@ const (
// DefaultMaxLogFiles is the default maximum number of log files to // DefaultMaxLogFiles is the default maximum number of log files to
// keep. // keep.
DefaultMaxLogFiles = 3 DefaultMaxLogFiles = 10
// DefaultMaxLogFileSize is the default maximum log file size in MB. // DefaultMaxLogFileSize is the default maximum log file size in MB.
DefaultMaxLogFileSize = 10 DefaultMaxLogFileSize = 20
) )
// LogConfig holds logging configuration options. // LogConfig holds logging configuration options.

View File

@@ -94,7 +94,9 @@
options to the `logging` config namespace under new `--logging.file.max-files` options to the `logging` config namespace under new `--logging.file.max-files`
and `--logging.files.max-file-size` options. The old options (`--maxlogfiles` and `--logging.files.max-file-size` options. The old options (`--maxlogfiles`
and `--maxlogfilesize`) will still work but deprecation notices have been and `--maxlogfilesize`) will still work but deprecation notices have been
added and they will be removed in a future release. added and they will be removed in a future release. The defaults values for
these options have also been increased from max 3 log files to 10 and from
max 10 MB to 20 MB.
## Breaking Changes ## Breaking Changes
## Performance Improvements ## Performance Improvements

View File

@@ -33,11 +33,11 @@
; DEPRECATED: Use logging.file.max-files instead. ; DEPRECATED: Use logging.file.max-files instead.
; Number of logfiles that the log rotation should keep. Setting it to 0 disables ; Number of logfiles that the log rotation should keep. Setting it to 0 disables
; deletion of old log files. ; deletion of old log files.
; maxlogfiles=3 ; maxlogfiles=10
; ;
; DEPRECATED: Use logging.file.max-file-size instead. ; DEPRECATED: Use logging.file.max-file-size instead.
; Max log file size in MB before it is rotated. ; Max log file size in MB before it is rotated.
; maxlogfilesize=10 ; maxlogfilesize=20
; Time after which an RPCAcceptor will time out and return false if ; Time after which an RPCAcceptor will time out and return false if
; it hasn't yet received a response. ; it hasn't yet received a response.
@@ -990,10 +990,10 @@
; Number of log files that the log rotation should keep. Setting ; Number of log files that the log rotation should keep. Setting
; it to 0 disables deletion of old log files. ; it to 0 disables deletion of old log files.
; logging.file.max-files=3 ; logging.file.max-files=10
; Max log file size in MB before it is rotated. ; Max log file size in MB before it is rotated.
; logging.file.max-file-size=10 ; logging.file.max-file-size=20
; Compression algorithm to use when rotating logs. ; Compression algorithm to use when rotating logs.
; Default: ; Default: