Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Emitters = make(map[string]Emitter)
Emitters is the registry of Emitter implementers
Functions ¶
Types ¶
type Emitter ¶
type Emitter interface { Setup() HandleLogMessage(jsonSerializeable interface{}) error Cleanup() error }
An Emitter defines how to ship a log message to a log service.
type Message ¶
type Message struct { ECSVersion string `json:"ecs.version"` Timestamp time.Time `json:"@timestamp"` Labels map[string]string `json:"labels"` Tags []string `json:"tags"` Message string `json:"message"` }
A Message is a structured log message - only used if the log message we consume from the subprocess is not already structured
Click to show internal directories.
Click to hide internal directories.