Documentation
¶
Index ¶
- func Debug(ctx context.Context, args ...interface{})
- func DebugWith(ctx context.Context, addFields []logger.Field, args ...interface{})
- func DebugWithf(ctx context.Context, addFields []logger.Field, format string, ...)
- func Debugf(ctx context.Context, format string, args ...interface{})
- func Error(ctx context.Context, code int, args ...interface{})
- func ErrorWith(ctx context.Context, addFields []logger.Field, code int, args ...interface{})
- func ErrorWithf(ctx context.Context, addFields []logger.Field, code int, format string, ...)
- func Errorf(ctx context.Context, code int, format string, args ...interface{})
- func Fatal(ctx context.Context, args ...interface{})
- func FatalWith(ctx context.Context, addFields []logger.Field, args ...interface{})
- func FatalWithf(ctx context.Context, addFields []logger.Field, format string, ...)
- func Fatalf(ctx context.Context, format string, args ...interface{})
- func GetLogger(msg *codec.Msg) logger.Logger
- func GetTraceback() (ret string)
- func Info(ctx context.Context, args ...interface{})
- func InfoWith(ctx context.Context, addFields []logger.Field, args ...interface{})
- func InfoWithf(ctx context.Context, addFields []logger.Field, format string, ...)
- func Infof(ctx context.Context, format string, args ...interface{})
- func Warn(ctx context.Context, args ...interface{})
- func WarnWith(ctx context.Context, addFields []logger.Field, args ...interface{})
- func WarnWithf(ctx context.Context, addFields []logger.Field, format string, ...)
- func Warnf(ctx context.Context, format string, args ...interface{})
- type TimeLog
- func (t *TimeLog) Debug(args ...interface{})
- func (t *TimeLog) Debugf(format string, args ...interface{})
- func (t *TimeLog) During() time.Duration
- func (t *TimeLog) Error(code int, args ...interface{})
- func (t *TimeLog) Errorf(code int, format string, args ...interface{})
- func (t *TimeLog) Info(args ...interface{})
- func (t *TimeLog) Infof(format string, args ...interface{})
- func (t *TimeLog) OverThreshold() bool
- func (t *TimeLog) SetThreshold(i time.Duration)
- func (t *TimeLog) Start(ctx context.Context) *TimeLog
- func (t *TimeLog) Warn(args ...interface{})
- func (t *TimeLog) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DebugWithf ¶
DebugWithf 调试日志,带用户自定义上报字段 addFields
func ErrorWithf ¶
func ErrorWithf(ctx context.Context, addFields []logger.Field, code int, format string, args ...interface{})
ErrorWithf 错误日志,带用户自定义上报字段 addFields
func FatalWithf ¶
FatalWithf panic 等崩溃日志,带用户自定义上报字段 addFields
Types ¶
Click to show internal directories.
Click to hide internal directories.