Documentation ¶
Index ¶
- func AttachLogger(ctx context.Context, logger *zap.SugaredLogger) context.Context
- func CloneWithLevel(ctx context.Context, newLevel zapcore.Level) *zap.SugaredLogger
- func DebugKV(ctx context.Context, message string, kvs ...interface{})
- func ErrorKV(ctx context.Context, message string, kvs ...interface{})
- func FatalKV(ctx context.Context, message string, kvs ...interface{})
- func InfoKV(ctx context.Context, message string, kvs ...interface{})
- func SetLevelFromContext(ctx context.Context) context.Context
- func SetLogger(newLogger *zap.SugaredLogger)
- func WarnKV(ctx context.Context, message string, kvs ...interface{})
- func WithLevel(lvl zapcore.Level) zap.Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttachLogger ¶
AttachLogger - attach logger to context
func CloneWithLevel ¶
CloneWithLevel - clone logger with level from context
func SetLevelFromContext ¶
SetLevelFromContext - set logger level from grpc-metadata-log-level
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.