Class SetLevelRequestParams
- Namespace
- ModelContextProtocol.Protocol
- Assembly
- ModelContextProtocol.Core.dll
Represents the parameters used with a LoggingSetLevel request from a client to enable or adjust logging.
[Obsolete("The Logging feature is deprecated as of specification version 2026-07-28 and may be removed in a future version. See SEP-2577 for more information.", DiagnosticId = "MCP9005", UrlFormat = "https://github.com/modelcontextprotocol/csharp-sdk/blob/main/docs/list-of-diagnostics.md#obsolete-apis")]
public sealed class SetLevelRequestParams : RequestParams
- Inheritance
-
SetLevelRequestParams
- Inherited Members
Remarks
This request allows clients to configure the level of logging information they want to receive from the server. The server will send notifications for log events at the specified level and all higher (more severe) levels.
Properties
Level
Gets or sets the level of logging that the client wants to receive from the server.
[JsonPropertyName("level")]
public required LoggingLevel Level { get; set; }