(ctx context.Context, record slog.Record)
| 305 | } |
| 306 | |
| 307 | func (e *extraFieldsSlogHandler) Handle(ctx context.Context, record slog.Record) error { |
| 308 | if elf, ok := ctx.Value(ExtraLogFieldsCtxKey).(*ExtraLogFields); ok { |
| 309 | return elf.getSloggerHandler(e).Handle(ctx, record) |
| 310 | } |
| 311 | |
| 312 | return e.defaultHandler.Handle(ctx, record) |
| 313 | } |
| 314 | |
| 315 | func (e *extraFieldsSlogHandler) WithAttrs(attrs []slog.Attr) slog.Handler { |
| 316 | return &extraFieldsSlogHandler{ |
nothing calls this directly
no test coverage detected