@@ -21,23 +21,23 @@ type Element struct {
2121
2222// Resource is a logging resource
2323type Resource struct {
24- ResourceType string `json:"resourceType"` // LogEvent
25- ID string `json:"id"` // 7f4c85a8-e472-479f-b772-2916353d02a4
26- ApplicationName string `json:"applicationName"` // OPS
27- EventID string `json:"eventId"` // 110114
28- Category string `json:"category"` // TRACELOG
29- Component string `json:"component"` // "TEST"
30- TransactionID string `json:"transactionId"` // 2abd7355-cbdd-43e1-b32a-43ec19cd98f0
31- ServiceName string `json:"serviceName"` // OPS
32- ApplicationInstance string `json:"applicationInstance"` // INST-00002
33- ApplicationVersion string `json:"applicationVersion"` // 1.0.0
34- OriginatingUser string `json:"originatingUser"` // SomeUser
35- ServerName string `json:"serverName"` // app.example.com
36- LogTime string `json:"logTime"` // 2017-01-31T08:00:00Z
37- Severity string `json:"severity"` // INFO
38- LogData LogData `json:"logData"` // Log data
39- Custom json.RawMessage `json:"custom,omitempty"` // Custom log fields
40- Meta map [string ]string `json:"-"`
24+ ResourceType string `json:"resourceType"` // LogEvent
25+ ID string `json:"id"` // 7f4c85a8-e472-479f-b772-2916353d02a4
26+ ApplicationName string `json:"applicationName"` // OPS
27+ EventID string `json:"eventId"` // 110114
28+ Category string `json:"category"` // TRACELOG
29+ Component string `json:"component"` // "TEST"
30+ TransactionID string `json:"transactionId"` // 2abd7355-cbdd-43e1-b32a-43ec19cd98f0
31+ ServiceName string `json:"serviceName"` // OPS
32+ ApplicationInstance string `json:"applicationInstance"` // INST-00002
33+ ApplicationVersion string `json:"applicationVersion"` // 1.0.0
34+ OriginatingUser string `json:"originatingUser"` // SomeUser
35+ ServerName string `json:"serverName"` // app.example.com
36+ LogTime string `json:"logTime"` // 2017-01-31T08:00:00Z
37+ Severity string `json:"severity"` // INFO
38+ LogData LogData `json:"logData"` // Log data
39+ Custom json.RawMessage `json:"custom,omitempty"` // Custom log fields
40+ Meta map [string ]interface {} `json:"-"`
4141}
4242
4343// LogData is the payload of a log message
0 commit comments