Documentation ¶
Overview ¶
Package ecslogs provides the implementation of an event handler that outputs events in a ecslogs-compatible format.
Importing this package has the side effect of configuring the default logger to use an ecslogs handler if stdout is not a terminal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Output io.Writer Program string Pid int // contains filtered or unexported fields }
Handler is an event handler which formats events in a ecslogs-compatible format and writes them to its output.
It is safe to use a handler concurrently from multiple goroutines.
func NewHandler ¶
NewHandler creates a new handler which writes to output
func (*Handler) HandleEvent ¶
HandleEvent satisfies the events.Handler interface.
Click to show internal directories.
Click to hide internal directories.