mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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.
This commit is contained in:
parent
ca37b24455
commit
7d4c319fcb
@ -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,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user