You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 21, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: rfc5424/machine.go.rl
+16-16Lines changed: 16 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -13,37 +13,37 @@ var ColumnPositionTemplate = " [col %d]"
13
13
14
14
const (
15
15
// ErrPrival represents an error in the priority value (PRIVAL) inside the PRI part of the RFC5424 syslog message.
16
-
ErrPrival = "expecting a priority value in the range 1-191 or equal to 0"
16
+
ErrPrival = "expecting a priority value in the range 1-191 or equal to 0"
17
17
// ErrPri represents an error in the PRI part of the RFC5424 syslog message.
18
-
ErrPri = "expecting a priority value within angle brackets"
18
+
ErrPri = "expecting a priority value within angle brackets"
19
19
// ErrVersion represents an error in the VERSION part of the RFC5424 syslog message.
20
-
ErrVersion = "expecting a version value in the range 1-999"
20
+
ErrVersion = "expecting a version value in the range 1-999"
21
21
// ErrTimestamp represents an error in the TIMESTAMP part of the RFC5424 syslog message.
22
-
ErrTimestamp = "expecting a RFC3339MICRO timestamp or a nil value"
22
+
ErrTimestamp = "expecting a RFC3339MICRO timestamp or a nil value"
23
23
// ErrHostname represents an error in the HOSTNAME part of the RFC5424 syslog message.
24
-
ErrHostname = "expecting an hostname (from 1 to max 255 US-ASCII characters) or a nil value"
24
+
ErrHostname = "expecting an hostname (from 1 to max 255 US-ASCII characters) or a nil value"
25
25
// ErrAppname represents an error in the APP-NAME part of the RFC5424 syslog message.
26
-
ErrAppname = "expecting an app-name (from 1 to max 48 US-ASCII characters) or a nil value"
26
+
ErrAppname = "expecting an app-name (from 1 to max 48 US-ASCII characters) or a nil value"
27
27
// ErrProcID represents an error in the PROCID part of the RFC5424 syslog message.
28
-
ErrProcID = "expecting a procid (from 1 to max 128 US-ASCII characters) or a nil value"
28
+
ErrProcID = "expecting a procid (from 1 to max 128 US-ASCII characters) or a nil value"
29
29
// ErrMsgID represents an error in the MSGID part of the RFC5424 syslog message.
30
-
ErrMsgID = "expecting a msgid (from 1 to max 32 US-ASCII characters) or a nil value"
30
+
ErrMsgID = "expecting a msgid (from 1 to max 32 US-ASCII characters) or a nil value"
31
31
// ErrStructuredData represents an error in the STRUCTURED DATA part of the RFC5424 syslog message.
32
-
ErrStructuredData = "expecting a structured data section containing one or more elements (`[id( key=\"value\")*]+`) or a nil value"
32
+
ErrStructuredData = "expecting a structured data section containing one or more elements (`[id( key=\"value\")*]+`) or a nil value"
33
33
// ErrSdID represents an error regarding the ID of a STRUCTURED DATA element of the RFC5424 syslog message.
34
-
ErrSdID = "expecting a structured data element id (from 1 to max 32 US-ASCII characters; except `=`, ` `, `]`, and `\"`"
34
+
ErrSdID = "expecting a structured data element id (from 1 to max 32 US-ASCII characters; except `=`, ` `, `]`, and `\"`"
35
35
// ErrSdIDDuplicated represents an error occurring when two STRUCTURED DATA elementes have the same ID in a RFC5424 syslog message.
36
-
ErrSdIDDuplicated = "duplicate structured data element id"
36
+
ErrSdIDDuplicated = "duplicate structured data element id"
37
37
// ErrSdParam represents an error regarding a STRUCTURED DATA PARAM of the RFC5424 syslog message.
38
-
ErrSdParam = "expecting a structured data parameter (`key=\"value\"`, both part from 1 to max 32 US-ASCII characters; key cannot contain `=`, ` `, `]`, and `\"`, while value cannot contain `]`, backslash, and `\"` unless escaped)"
38
+
ErrSdParam = "expecting a structured data parameter (`key=\"value\"`, both part from 1 to max 32 US-ASCII characters; key cannot contain `=`, ` `, `]`, and `\"`, while value cannot contain `]`, backslash, and `\"` unless escaped)"
39
39
// ErrMsg represents an error in the MESSAGE part of the RFC5424 syslog message.
40
-
ErrMsg = "expecting a free-form optional message in UTF-8 (starting with or without BOM)"
40
+
ErrMsg = "expecting a free-form optional message in UTF-8 (starting with or without BOM)"
41
41
// ErrMsgNotCompliant represents an error in the MESSAGE part of the RFC5424 syslog message if WithCompliatMsg option is on.
42
-
ErrMsgNotCompliant = ErrMsg + " or a free-form optional message in any encoding (starting without BOM)"
42
+
ErrMsgNotCompliant = ErrMsg + " or a free-form optional message in any encoding (starting without BOM)"
43
43
// ErrEscape represents the error for a RFC5424 syslog message occurring when a STRUCTURED DATA PARAM value contains '"', '\', or ']' not escaped.
44
-
ErrEscape = "expecting chars `]`, `\"`, and `\\` to be escaped within param value"
44
+
ErrEscape = "expecting chars `]`, `\"`, and `\\` to be escaped within param value"
45
45
// ErrParse represents a general parsing error for a RFC5424 syslog message.
46
-
ErrParse = "parsing error"
46
+
ErrParse = "parsing error"
47
47
)
48
48
49
49
// RFC3339MICRO represents the timestamp format that RFC5424 mandates.
0 commit comments