WithRequestLogger sets the logger associated with the current request
(logger *slog.Logger)
| 147 | |
| 148 | // WithRequestLogger sets the logger associated with the current request |
| 149 | func WithRequestLogger(logger *slog.Logger) RequestOption { |
| 150 | return func(o *frankenPHPContext) error { |
| 151 | o.logger = logger |
| 152 | |
| 153 | return nil |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | // WithWorkerName sets the worker that should handle the request |
| 158 | func WithWorkerName(name string) RequestOption { |