mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 17:05:18 +00:00
e59714242e
- Refactor configuration for logging to use separate plugins - Move existing filesystem logging to filesystem plugin - Create new AWS firehose plugin - Update documentation around logging
12 lines
314 B
Go
12 lines
314 B
Go
package kolide
|
|
|
|
import "encoding/json"
|
|
|
|
// JSONLogger defines an interface for loggers that can write JSON to various
|
|
// output sources.
|
|
type JSONLogger interface {
|
|
// Write writes the JSON log entries to the appropriate destination,
|
|
// returning any errors that occurred.
|
|
Write(logs []json.RawMessage) error
|
|
}
|