build+config: move maxlogfiles and maxfilesize to logger config

Add deprecation notices but continue to read both.
This commit is contained in:
Elle Mouton
2024-10-29 18:08:08 +02:00
parent 3adbdbb39a
commit 22c13790df
4 changed files with 58 additions and 18 deletions

View File

@@ -30,9 +30,12 @@
; Rotated logs are compressed in place.
; logdir=~/.lnd/logs
; Number of logfiles that the log rotation should keep. Setting it to 0 disables deletion of old log files.
; DEPRECATED: Use logging.file.max-files instead.
; Number of logfiles that the log rotation should keep. Setting it to 0 disables
; deletion of old log files.
; maxlogfiles=3
;
; DEPRECATED: Use logging.file.max-file-size instead.
; Max log file size in MB before it is rotated.
; maxlogfilesize=10
@@ -985,6 +988,13 @@
; Disable logging to the standard LND log file.
; logging.file.disable=false
; Number of log files that the log rotation should keep. Setting
; it to 0 disables deletion of old log files.
; logging.file.max-files=3
; Max log file size in MB before it is rotated.
; logging.file.max-file-size=10
; Compression algorithm to use when rotating logs.
; Default:
; logging.file.compressor=gzip