mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-23 08:46:52 +00:00
6e1436cefb
Signed-off-by: Evan Lezar <elezar@nvidia.com>
18 lines
332 B
Go
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,
|
|
}
|
|
}
|