You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: logger_121.go
    path of file: ./repos/log
    
    the code of the file until where you have to start completion: //go:build go1.21
// +build go1.21

package log

import (
	"context"
	"log/slog"
	"runtime"
	"sync/atomic"
)

// Enabled reports whether the logger is enabled for the given level.
//
// Implements slog.Handler.
func (l *
    
func (l *Logger) Handle(ctx context.Context, record slog.Record) error {
	if !l.Enabled(ctx, record.Level) {
		return nil
	}

	fields := make([]interface{}, 0, record.NumAttrs()*2)
	record.Attrs(func(a slog.Attr) bool {
		fields = append(fields, a.Key, a.Value.String())
		return true
	})
	// Get the caller frame using the record's PC.
	frames := runtime.CallersFrames([]uintptr{record.PC})
	frame, _ := frames.Next()
	l.handle(fromSlogLevel[record.Level], record.Time, []runtime.Frame{frame}, record.Message, fields...)
	return nil
}