mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-01 18:27:43 +02:00
build/log: add log types + NewSubLogger
This commit is contained in:
11
build/log_nolog.go
Normal file
11
build/log_nolog.go
Normal file
@@ -0,0 +1,11 @@
|
||||
// +build nolog
|
||||
|
||||
package build
|
||||
|
||||
// LoggingType is a log type that writes no logs.
|
||||
const LoggingType = LogTypeNone
|
||||
|
||||
// Write is a noop.
|
||||
func (w *LogWriter) Write(b []byte) (int, error) {
|
||||
return len(b), nil
|
||||
}
|
Reference in New Issue
Block a user