mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 06:48:54 +00:00
14 lines
350 B
Go
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
|
|
}
|