Documentation
¶
Index ¶
- Constants
- func LogcFromCtx(ctx context.Context, opts ...LogOption) log.Logger
- func Logger(ctx context.Context, opts ...LogOption) log.Logger
- func LogrFromCtx(ctx context.Context) logr.Logger
- func WithLogc(ctx context.Context, lg log.Logger, opts ...LogOption) context.Context
- func WithLogger(ctx context.Context, lg log.Logger, opts ...LogOption) context.Context
- type CtxKey
- type LogOption
Constants ¶
View Source
const (
CtxKeyLog = CtxKey("log")
)
Variables ¶
This section is empty.
Functions ¶
func Logger ¶
Logger get logger from the context. By default, it uses "log" key. use WithLogName("<custom name>") to set custom key If logger not found dummyLogger is returned
Types ¶
Click to show internal directories.
Click to hide internal directories.