Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultLogger = &logrus.Logger{ Out: os.Stdout, Formatter: &logrusutil.ConsoleLogFormatter{ TimestampFormat: timestampFormat, }, Hooks: make(logrus.LevelHooks), Level: logrus.InfoLevel, } )
Functions ¶
This section is empty.
Types ¶
type LevelLogger ¶
type LevelLogger interface { Debug(...interface{}) Debugf(string, ...interface{}) Debugln(...interface{}) Info(...interface{}) Infof(string, ...interface{}) Infoln(...interface{}) Warn(...interface{}) Warnf(string, ...interface{}) Warnln(...interface{}) Error(...interface{}) Errorf(string, ...interface{}) Errorln(...interface{}) }
func GetLevelLogger ¶
func GetLevelLogger(inj inject.Injector) LevelLogger
GetLevelLogger get LevelLogger instance from injector
type StdLogger ¶
type StdLogger interface { Print(...interface{}) Printf(string, ...interface{}) Println(...interface{}) Fatal(...interface{}) Fatalf(string, ...interface{}) Fatalln(...interface{}) Panic(...interface{}) Panicf(string, ...interface{}) Panicln(...interface{}) }
func GetStdLogger ¶
GetStdLogger get StdLogger instance from injector
Click to show internal directories.
Click to hide internal directories.