Documentation ¶
Index ¶
- func Debugf(format string, a ...interface{})
- func Errorf(format string, a ...interface{})
- func Fatalf(format string, a ...interface{})
- func Infof(format string, a ...interface{})
- func Printf(format string, a ...interface{})
- func Tracef(format string, a ...interface{})
- func Warnf(format string, a ...interface{})
- type Level
- type Logger
- func (l *Logger) Debugf(format string, a ...interface{})
- func (l *Logger) Errorf(format string, a ...interface{})
- func (l *Logger) Fatalf(format string, a ...interface{})
- func (l *Logger) Infof(format string, a ...interface{})
- func (l *Logger) Output(level Level, format string, a ...interface{})
- func (l *Logger) Printf(format string, a ...interface{})
- func (l *Logger) SetPrefix(prefix string) *Logger
- func (l *Logger) Skip(skip int) *Logger
- func (l *Logger) Tracef(format string, a ...interface{})
- func (l *Logger) Warnf(format string, a ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct { Level Level Colorful bool ShowLine bool Prefix string StackSkip int // contains filtered or unexported fields }
Logger logger
var DefaultLogger *Logger
DefaultLogger logger
func NewLoggerBySkip ¶
NewLoggerBySkip new logger by skip
Click to show internal directories.
Click to hide internal directories.