Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements a log.Handler used for shipping logs to Axiom.
func New ¶
New creates a new Handler configured to talk to the specified Axiom deployment and authenticating with the given access token. An ingest token is sufficient enough. The logs will be ingested into the specified dataset. Additional options can be supplied to configure the Handler. A Handler needs to be closed properly to make sure all logs are sent by calling Close().
func NewWithClient ¶
NewWithClient behaves like New() but utilizes an already configured axiom.Client to talk to a deployment.
func (*Handler) Close ¶
func (h *Handler) Close()
Close the handler and make sure all events are flushed. Closing the handler renders it unusable for further use.
type Option ¶
An Option modifies the behaviour of the Axiom handler.
func IngestOptions ¶
func IngestOptions(opts axiom.IngestOptions) Option
IngestOptions specifies the ingestion options to use for ingesting the logs.