moby/docker/log.go
Doug Davis 2facc04673 Add --log-level support
Next steps, in another PR, would be:
- make all logging go through the logrus stuff
- I'd like to see if we can remove the env var stuff (like DEBUG) but we'll see

Closes #5198

Signed-off-by: Doug Davis <dug@us.ibm.com>
2014-11-15 09:00:48 -08:00

12 lines
148 B
Go

package main
import (
"os"
log "github.com/Sirupsen/logrus"
)
func initLogging(lvl log.Level) {
log.SetOutput(os.Stderr)
log.SetLevel(lvl)
}