fleet/server/kolide/logging.go
Zachary Wasserman e59714242e
Add Firehose logging capabilities for result and status logs (#2022)
- Refactor configuration for logging to use separate plugins
- Move existing filesystem logging to filesystem plugin
- Create new AWS firehose plugin
- Update documentation around logging
2019-04-08 11:47:15 -07:00

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
}