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) JSONFormat(level Level, message string) map[string]interface{}
- func (l *Logger) Output(level Level, message string)
- 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
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) JSONFormat ¶
日志格式化输出
func (*Logger) WithCaller ¶
func (*Logger) WithCallersFrames ¶
func (*Logger) WithFields ¶
Click to show internal directories.
Click to hide internal directories.