fleet/server/fleet/logging.go
Zach Wasserman fb32f0cf40
Remove kolide types and packages from backend (#974)
Generally renamed `kolide` -> `fleet`
2021-06-06 15:07:29 -07:00

14 lines
350 B
Go

package fleet
import (
"context"
"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(ctx context.Context, logs []json.RawMessage) error
}