csharp-sdk/src/ModelContextProtocol/Protocol/LoggingLevel.cs
Stephen Toub 106ab8064f
Clean up namespaces (#410)
No meaningful code changes, just lots of namespace shuffling to have fewer namespaces and to put things in better namespaces.
2025-05-14 14:50:26 -04:00

45 lines
No EOL
1.6 KiB
C#

using System.Text.Json.Serialization;
namespace ModelContextProtocol.Protocol;
/// <summary>
/// Indicates the severity of a log message.
/// </summary>
/// <remarks>
/// These map to syslog message severities, as specified in <see href="https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1">RFC-5424</see>.
/// </remarks>
[JsonConverter(typeof(CustomizableJsonStringEnumConverter<LoggingLevel>))]
public enum LoggingLevel
{
/// <summary>Detailed debug information, typically only valuable to developers.</summary>
[JsonStringEnumMemberName("debug")]
Debug,
/// <summary>Normal operational messages that require no action.</summary>
[JsonStringEnumMemberName("info")]
Info,
/// <summary>Normal but significant events that might deserve attention.</summary>
[JsonStringEnumMemberName("notice")]
Notice,
/// <summary>Warning conditions that don't represent an error but indicate potential issues.</summary>
[JsonStringEnumMemberName("warning")]
Warning,
/// <summary>Error conditions that should be addressed but don't require immediate action.</summary>
[JsonStringEnumMemberName("error")]
Error,
/// <summary>Critical conditions that require immediate attention.</summary>
[JsonStringEnumMemberName("critical")]
Critical,
/// <summary>Action must be taken immediately to address the condition.</summary>
[JsonStringEnumMemberName("alert")]
Alert,
/// <summary>System is unusable and requires immediate attention.</summary>
[JsonStringEnumMemberName("emergency")]
Emergency
}