Documentation ¶
Index ¶
- func Close()
- func CtxDebug(ctx context.Context, msg string, fields ...zap.Field)
- func CtxError(ctx context.Context, msg string, fields ...zap.Field)
- func CtxInfo(ctx context.Context, msg string, fields ...zap.Field)
- func CtxWarn(ctx context.Context, msg string, fields ...zap.Field)
- func Debug(msg string, fields ...zap.Field)
- func Debugf(msg string, args ...interface{})
- func Error(msg string, fields ...zap.Field)
- func Errorf(msg string, args ...interface{})
- func GetLogger() *zap.Logger
- func GetSugared() *zap.SugaredLogger
- func Info(msg string, fields ...zap.Field)
- func Infof(msg string, args ...interface{})
- func Init(conf conf.Log)
- func Set(l *zap.Logger)
- func Warn(msg string, fields ...zap.Field)
- func Warnf(msg string, args ...interface{})
- func WithContext(ctx context.Context) *zap.Logger
- type Log
- type Logger
- func (l *Logger) Debug(msg string, fields ...zap.Field)
- func (l *Logger) Debugf(tmp string, args ...interface{})
- func (l *Logger) Error(msg string, fields ...zap.Field)
- func (l *Logger) Errorf(tmp string, args ...interface{})
- func (l *Logger) Fatal(msg string, fields ...zap.Field)
- func (l *Logger) Fatalf(tmp string, args ...interface{})
- func (l *Logger) Info(msg string, fields ...zap.Field)
- func (l *Logger) Infof(tmp string, args ...interface{})
- func (l *Logger) Warn(msg string, fields ...zap.Field)
- func (l *Logger) Warnf(tmp string, args ...interface{})
- func (l *Logger) WithContext(ctx context.Context) *zap.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSugared ¶
func GetSugared() *zap.SugaredLogger
Types ¶
type Log ¶
type Log interface { Info(ctx context.Context, msg string, fields ...zap.Field) Warn(ctx context.Context, msg string, fields ...zap.Field) Error(ctx context.Context, msg string, fields ...zap.Field) Fatal(ctx context.Context, msg string, fields ...zap.Field) Debug(ctx context.Context, msg string, fields ...zap.Field) }
Click to show internal directories.
Click to hide internal directories.