build/log: add log types + NewSubLogger
This commit is contained in:
4 files changed
+138
No files matched your search
@@ -0,0 +1,14 @@
|
||||
// +build stdlog
|
||||
|
||||
package build
|
||||
|
||||
import "os"
|
||||
|
||||
// LoggingType is a log type that only writes to stdout.
|
||||
const LoggingType = LogTypeStdOut
|
||||
|
||||
// Write writes the provided byte slice to stdout.
|
||||
func (w *LogWriter) Write(b []byte) (int, error) {
|
||||
os.Stdout.Write(b)
|
||||
return len(b), nil
|
||||
}
|
||||
Reference in new issue
Block a user