Files
docker-cli/components/engine/docker/log.go
Doug Davis 40988ed79f 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>
Upstream-commit: 2facc0467336a80f48c765dbdbd803055a431aa9
Component: engine
2014-11-15 09:00:48 -08:00

13 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)
}