Documentation ¶
Index ¶
Constants ¶
View Source
const ( FatalLevel = 1 << iota WarnLevel InfoLevel DebugLevel PrintLevel = 0 PRINT = "PRINT" FATAL = "FATAL" WARN = "WARN" INFO = "INFO" DEBUG = "DEBUG" )
logger level
Variables ¶
View Source
var ( Output = defaultLogger.Output Printf = defaultLogger.Printf Debugf = defaultLogger.Debugf Infof = defaultLogger.Infof Warnf = defaultLogger.Warnf Fatalf = defaultLogger.Fatalf SetLevel = defaultLogger.SetLevel SetOutput = defaultLogger.SetOutput )
Functions ¶
func LevelString ¶
func SetDefault ¶
func SetDefault(l Logger)
Types ¶
Click to show internal directories.
Click to hide internal directories.