Commit 7d4c319f by Jason Wilder

CLI: Default logging output to stderr instead of stdout

Makes it possible to separate console output from logging output so
command output can be piped to a file cleanly.
parent ca37b244
......@@ -40,7 +40,7 @@ type ConsoleWriter struct {
// create ConsoleWriter returning as LoggerInterface.
func NewConsole() LoggerInterface {
return &ConsoleWriter{
lg: log.New(os.Stdout, "", log.Ldate|log.Ltime),
lg: log.New(os.Stderr, "", log.Ldate|log.Ltime),
Level: TRACE,
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment