-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetadata.go
34 lines (30 loc) · 1.16 KB
/
metadata.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package panyl
const (
MetadataStructure = "structure"
MetadataFormat = "format"
MetadataLevel = "level"
MetadataTimestamp = "ts" // time.Time
MetadataTimestampCalculated = "ts_calc" // bool [whether the timestamp was calculated instead of present in the data]
MetadataMessage = "message"
MetadataApplication = "application"
MetadataApplicationSource = "application_source"
MetadataClean = "clean" // []string
MetadataCategory = "category"
MetadataOriginalCategory = "original_category" // [if a plugin changed a category, it can store the original here]
MetadataCreated = "created" // bool [whether the process was created instead of being in the log file]
MetadataSkip = "skip" // bool [if true, the line will be skipped]
)
const (
MetadataStructureJSON = "json"
MetadataStructureXML = "xml"
)
const (
MetadataLevelTRACE = "trace"
MetadataLevelDEBUG = "debug"
MetadataLevelINFO = "info"
MetadataLevelWARNING = "warn"
MetadataLevelERROR = "error"
)
const (
MetadataCleanAnsiEscape = "ansi_escape"
)