mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-11-10 06:07:16 +01:00
build+config: move maxlogfiles and maxfilesize to logger config
Add deprecation notices but continue to read both.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user