You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: config.go
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ const (
59
59
defaultLogLevel="info"
60
60
defaultLogDirname="logs"
61
61
defaultLogFilename="lnd.log"
62
+
defaultLogCompressor=build.Gzip
62
63
defaultRPCPort=10009
63
64
defaultRESTPort=8080
64
65
defaultPeerPort=9735
@@ -315,6 +316,7 @@ type Config struct {
315
316
ReadMacPathstring`long:"readonlymacaroonpath" description:"Path to write the read-only macaroon for lnd's RPC and REST services if it doesn't exist"`
316
317
InvoiceMacPathstring`long:"invoicemacaroonpath" description:"Path to the invoice-only macaroon for lnd's RPC and REST services if it doesn't exist"`
317
318
LogDirstring`long:"logdir" description:"Directory to log output."`
319
+
LogCompressorstring`long:"logcompressor" description:"Compression algorithm to use when rotating logs." choice:"gzip" choice:"zstd"`
318
320
MaxLogFilesint`long:"maxlogfiles" description:"Maximum logfiles to keep (0 for no rotation)"`
319
321
MaxLogFileSizeint`long:"maxlogfilesize" description:"Maximum logfile size in MB"`
320
322
AcceptorTimeout time.Duration`long:"acceptortimeout" description:"Time after which an RPCAcceptor will time out and return false if it hasn't yet received a response"`
Copy file name to clipboardExpand all lines: docs/release-notes/release-notes-0.19.0.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@
36
36
# Improvements
37
37
## Functional Updates
38
38
39
+
*[Allow](https://github.com/lightningnetwork/lnd/pull/9017) the compression of logs during rotation with ZSTD via the `logcompressor` startup argument.
0 commit comments