github.com/decred/dcrlnd@v0.7.6/build/log_nolog.go (about)

     1  //go:build nolog
     2  // +build nolog
     3  
     4  package build
     5  
     6  // LoggingType is a log type that writes no logs.
     7  const LoggingType = LogTypeNone
     8  
     9  // Write is a noop.
    10  func (w *LogWriter) Write(b []byte) (int, error) {
    11  	return len(b), nil
    12  }