SetLogLevelHandler implements RequestHandlerInterface
FinalYes
Handler for the logging/setLevel request.
since protocol revision 2026-07-28 (SEP-2577), earliest removal 2027-07-28. Log to stderr (stdio) or use OpenTelemetry instead.
Handles client requests to set the logging level for the server. The server should send all logs at this level and higher (more severe) to the client.
Tags
Table of Contents
Interfaces
- RequestHandlerInterface
- Covariant in TResult: a handler only ever produces its result, so one declaring a concrete result type satisfies a collection of handlers typed by the interface every result implements.
Methods
- handle() : Response<string|int, EmptyResult>
- supports() : bool
Methods
handle()
public
handle(Request $request, SessionInterface $session) : Response<string|int, EmptyResult>
Parameters
- $request : Request
- $session : SessionInterface
Return values
Response<string|int, EmptyResult>supports()
public
supports(Request $request) : bool
Parameters
- $request : Request