Documentation ¶
Index ¶
- func AddFieldsFromCtx(logger logr.Logger, ctx context.Context, extensions context.Context) logr.Logger
- func NewLogger(level LogLevel) logr.Logger
- func NewLoggerTo(destWriter io.Writer, level LogLevel) logr.Logger
- func NewLoggerWithRotation(level LogLevel, outputPath string, maxSize int, maxBackups int, maxAge int) logr.Logger
- type LogLevel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFieldsFromCtx ¶
func AddFieldsFromCtx( logger logr.Logger, ctx context.Context, extensions context.Context, ) logr.Logger
AddFieldsFromCtx will check if provided context contain tracing span and if the span is currently recording. If so, it will call spanLogValuesProcessor function if it's also present in the context. If not it will add trace_id and span_id to logged values. It will also add the tenant id to the logged values.
Types ¶
Click to show internal directories.
Click to hide internal directories.