Skip to content

Commit fc25de6

Browse files
committed
log: Add watchtower client logger
1 parent a0891ee commit fc25de6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

collectors/log.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ var (
1919
// paymentLogger is a logger for lndmon's payments monitor.
2020
paymentLogger btclog.Logger
2121

22+
// watchtowerLogger is a logger for lndmon's watchtower client.
23+
watchtowerLogger btclog.Logger
24+
2225
noOpShutdownFunc = func() {}
2326
)
2427

@@ -52,6 +55,7 @@ func initLogRotator(logFile string, maxLogFileSize, maxLogFiles int) error {
5255
Logger = logManager.GenSubLogger("LNDMON", noOpShutdownFunc)
5356
htlcLogger = logManager.GenSubLogger("HTLC", noOpShutdownFunc)
5457
paymentLogger = logManager.GenSubLogger("PMNT", noOpShutdownFunc)
58+
watchtowerLogger = logManager.GenSubLogger("WTCL", noOpShutdownFunc)
5559

5660
// Set log level.
5761
// TODO: consider making this configurable.

0 commit comments

Comments
 (0)