1: <?php
2:
3: declare(strict_types=1);
4:
5: /**
6: * This file is part of the Nexus MCP SDK package.
7: *
8: * (c) 2026 John Paul E. Balandan, CPA <paulbalandan@gmail.com>
9: *
10: * For the full copyright and license information, please view
11: * the LICENSE file that was distributed with this source code.
12: */
13:
14: namespace Nexus\Mcp\Core\Schema\Enum;
15:
16: /**
17: * The severity of a log message.
18: *
19: * These map to syslog message severities, as specified in RFC-5424:
20: * https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
21: *
22: * @see https://modelcontextprotocol.io/specification/2025-11-25/schema#logginglevel
23: */
24: enum LoggingLevel: string
25: {
26: /**
27: * Messages that contain information normally of use only when debugging a program.
28: */
29: case Debug = 'debug';
30:
31: /**
32: * Informational messages.
33: */
34: case Info = 'info';
35:
36: /**
37: * Conditions that are not error conditions, but may require special handling.
38: */
39: case Notice = 'notice';
40:
41: /**
42: * Warning messages.
43: */
44: case Warning = 'warning';
45:
46: /**
47: * Error conditions.
48: */
49: case Error = 'error';
50:
51: /**
52: * Critical conditions, such as hard device errors.
53: */
54: case Critical = 'critical';
55:
56: /**
57: * A condition that should be corrected immediately, such as a corrupted system database.
58: */
59: case Alert = 'alert';
60:
61: /**
62: * A panic condition. The system is unusable.
63: */
64: case Emergency = 'emergency';
65: }
66: