Documentation ¶
Index ¶
- Constants
- Variables
- type LevelItem
- type Logger
- func (l *Logger) Debug(v ...interface{})
- func (l *Logger) Debugf(format string, v ...interface{})
- func (l *Logger) Error(v ...interface{})
- func (l *Logger) Errorf(format string, v ...interface{})
- func (l *Logger) Fatal(v ...interface{})
- func (l *Logger) Fatalf(format string, v ...interface{})
- func (l *Logger) Info(v ...interface{})
- func (l *Logger) Infof(format string, v ...interface{})
- func (l *Logger) Print(v ...interface{})
- func (l *Logger) Printf(format string, v ...interface{})
- func (l *Logger) SetLoggerLevel(level int)
- func (l *Logger) SetOutput(output *os.File)
- func (l *Logger) Trace(v ...interface{})
- func (l *Logger) Tracef(format string, v ...interface{})
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
Constants ¶
View Source
const ( LoggerLevelAll int = iota LoggerLevelTrace LoggerLevelDebug LoggerLevelInfo LoggerLevelWarn LoggerLevelError LoggerLevelFatal LoggerLevelOff )
日志颜色分类 绿色、蓝色、白色、黄色、红色、紫红色
Variables ¶
View Source
var ( SetLoggerLevel = logger.SetLoggerLevel SetOutput = logger.SetOutput Trace = logger.Trace Tracef = logger.Tracef Debug = logger.Debug Debugf = logger.Debugf Info = logger.Info Infof = logger.Infof Warn = logger.Warn Warnf = logger.Warnf Error = logger.Error Errorf = logger.Errorf Fatal = logger.Fatal Fatalf = logger.Fatalf Print = logger.Print Printf = logger.Printf )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.