func SetLogHandler()

in v2/logging.go [26:33]


func SetLogHandler(handler slog.Handler) {
	if handler == nil {
		handler = slog.Default().Handler()
	}
	getLogger = func(ctx context.Context) Logger {
		return &contextLogger{ctx: ctx, logger: slog.New(handler)}
	}
}