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 = 6Action must be taken immediately to address the condition.
[JsonStringEnumMemberName("critical")] Critical = 5Critical conditions that require immediate attention.
[JsonStringEnumMemberName("debug")] Debug = 0Detailed debug information, typically only valuable to developers.
[JsonStringEnumMemberName("emergency")] Emergency = 7System is unusable and requires immediate attention.
[JsonStringEnumMemberName("error")] Error = 4Error conditions that should be addressed but don't require immediate action.
[JsonStringEnumMemberName("info")] Info = 1Normal operational messages that require no action.
[JsonStringEnumMemberName("notice")] Notice = 2Normal but significant events that might deserve attention.
[JsonStringEnumMemberName("warning")] Warning = 3Warning conditions that don't represent an error but indicate potential issues.
Remarks
These values map to syslog message severities, as specified in RFC-5424.