Documentation
¶
Index ¶
- Variables
- func Debug(msg string, fields ...zap.Field)
- func DebugCtx(ctx context.Context, msg string, fields ...zap.Field)
- func Debugf(format string, args ...interface{})
- func DebugfCtx(ctx context.Context, format string, args ...interface{})
- func Error(msg string, fields ...zap.Field)
- func ErrorCtx(ctx context.Context, msg string, fields ...zap.Field)
- func Errorf(format string, args ...interface{})
- func ErrorfCtx(ctx context.Context, format string, args ...interface{})
- func Fatal(msg string, fields ...zap.Field)
- func FatalCtx(ctx context.Context, msg string, fields ...zap.Field)
- func Fatalf(format string, args ...interface{})
- func FatalfCtx(ctx context.Context, format string, args ...interface{})
- func GetLogDir() string
- func GetLogger(ctx context.Context) logger.Logger
- func Info(msg string, fields ...zap.Field)
- func InfoCtx(ctx context.Context, msg string, fields ...zap.Field)
- func Infof(format string, args ...interface{})
- func InfofCtx(ctx context.Context, format string, args ...interface{})
- func NewKitLogger(name string, level logger.Level) kitlog.Logger
- func Panic(msg string, fields ...zap.Field)
- func PanicCtx(ctx context.Context, msg string, fields ...zap.Field)
- func Panicf(format string, args ...interface{})
- func PanicfCtx(ctx context.Context, format string, args ...interface{})
- func Warn(msg string, fields ...zap.Field)
- func WarnCtx(ctx context.Context, msg string, fields ...zap.Field)
- func Warnf(format string, args ...interface{})
- func WarnfCtx(ctx context.Context, format string, args ...interface{})
- func WithLogger(ctx context.Context, fields ...zap.Field) context.Context
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// LoggerCtxKey logger context key
LoggerCtxKey = loggerKey{}
)
Functions ¶
func NewKitLogger ¶
NewKitLogger returns a Go kit log.Logger that sends
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.