github.com/decred/dcrlnd@v0.7.6/build/log_stdlog.go (about) 1 //go:build stdlog 2 // +build stdlog 3 4 package build 5 6 import "os" 7 8 // LoggingType is a log type that only writes to stdout. 9 const LoggingType = LogTypeStdOut 10 11 // Write writes the provided byte slice to stdout. 12 func (w *LogWriter) Write(b []byte) (int, error) { 13 os.Stdout.Write(b) 14 return len(b), nil 15 }