MCP PHP SDK

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
author

Adam Jamiu jamiuadam120@gmail.com

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

On this page

Search results