nvidia-container-toolkit/vendor/github.com/tsaikd/KDGoLib/logrusutil/ConsoleLogger.go
Evan Lezar 6e1436cefb Update go vendoring
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2021-09-07 13:13:03 +02:00

18 lines
332 B
Go

package logrusutil
import (
"os"
"github.com/sirupsen/logrus"
)
// NewConsoleLogger create new Logger with ConsoleLogFormatter
func NewConsoleLogger() *logrus.Logger {
return &logrus.Logger{
Out: os.Stdout,
Formatter: &ConsoleLogFormatter{},
Hooks: make(logrus.LevelHooks),
Level: logrus.InfoLevel,
}
}