Skip to content

Commit 0481665

Browse files
committed
Use full list of syslog logging severities
1 parent a20f174 commit 0481665

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

schema/schema.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,11 +857,15 @@
857857
"type": "object"
858858
},
859859
"LoggingLevel": {
860-
"description": "The severity of a log message.",
860+
"description": "The severity of a log message.\n\nThese map to syslog message severities, as specified in RFC-5424:\nhttps://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1",
861861
"enum": [
862+
"alert",
863+
"critical",
862864
"debug",
865+
"emergency",
863866
"error",
864867
"info",
868+
"notice",
865869
"warning"
866870
],
867871
"type": "string"

schema/schema.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,11 @@ export interface LoggingMessageNotification extends Notification {
650650

651651
/**
652652
* The severity of a log message.
653+
*
654+
* These map to syslog message severities, as specified in RFC-5424:
655+
* https://datatracker.ietf.org/doc/html/rfc5424#section-6.2.1
653656
*/
654-
export type LoggingLevel = "debug" | "info" | "warning" | "error";
657+
export type LoggingLevel = "debug" | "info" | "notice" | "warning" | "error" | "critical" | "alert" | "emergency";
655658

656659
/* Sampling */
657660
/**

0 commit comments

Comments
 (0)