build+config: move maxlogfiles and maxfilesize to logger config

Add deprecation notices but continue to read both.
This commit is contained in:
Elle Mouton committed 2024-10-30 13:30:04 +02:00
1 parent 3adbdbb39a
commit 22c13790df
4 files changed
+58 -18

No files matched your search

+11 -1
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