Documentation
¶
Index ¶
- type Fields
- type Level
- 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) LogFormat(level Level, message string) map[string]interface{}
- func (l *Logger) Panic(v ...interface{})
- func (l *Logger) Panicf(format string, v ...interface{})
- func (l *Logger) Warn(v ...interface{})
- func (l *Logger) Warnf(format string, v ...interface{})
- func (l *Logger) WithCaller(skip int) *Logger
- func (l *Logger) WithCallersFrames() *Logger
- func (l *Logger) WithContext(ctx context.Context) *Logger
- func (l *Logger) WithFields(f Fields) *Logger
- func (l *Logger) WriteLog(level Level, message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) WithCaller ¶
WithCaller 设置当前某一层调用栈的信息(程序计数器、文件信息、行号)。
func (*Logger) WithCallersFrames ¶
WithCallersFrames 设置当前的整个调用栈信息。
func (*Logger) WithContext ¶
WithContext 设置日志上下文属性。
Click to show internal directories.
Click to hide internal directories.