Table of Contents

Enum LoggingLevel

Namespace
ModelContextProtocol.Protocol
Assembly
ModelContextProtocol.Core.dll

Indicates the severity of a log message.

[JsonConverter(typeof(JsonStringEnumConverter<LoggingLevel>))]
[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 enum LoggingLevel

Fields

[JsonStringEnumMemberName("alert")] Alert = 6

Action must be taken immediately to address the condition.

[JsonStringEnumMemberName("critical")] Critical = 5

Critical conditions that require immediate attention.

[JsonStringEnumMemberName("debug")] Debug = 0

Detailed debug information, typically only valuable to developers.

[JsonStringEnumMemberName("emergency")] Emergency = 7

System is unusable and requires immediate attention.

[JsonStringEnumMemberName("error")] Error = 4

Error conditions that should be addressed but don't require immediate action.

[JsonStringEnumMemberName("info")] Info = 1

Normal operational messages that require no action.

[JsonStringEnumMemberName("notice")] Notice = 2

Normal but significant events that might deserve attention.

[JsonStringEnumMemberName("warning")] Warning = 3

Warning conditions that don't represent an error but indicate potential issues.

Remarks

These values map to syslog message severities, as specified in RFC-5424.