MCPcopy Index your code
hub / github.com/php/frankenphp / WithRequestLogger

Function WithRequestLogger

requestoptions.go:149–155  ·  view source on GitHub ↗

WithRequestLogger sets the logger associated with the current request

(logger *slog.Logger)

Source from the content-addressed store, hash-verified

147
148// WithRequestLogger sets the logger associated with the current request
149func 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
158func WithWorkerName(name string) RequestOption {

Callers 1

ProvisionMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected