Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hook ¶
type Hook struct {
// contains filtered or unexported fields
}
Hook implements a logrus.Hook used for shipping logs to Axiom.
func New ¶
New creates a new Hook 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 Hook. A Hook 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.
type Option ¶
An Option modifies the behaviour of the Axiom hook.
func IngestOptions ¶
func IngestOptions(opts axiom.IngestOptions) Option
IngestOptions specifies the ingestion options to use for ingesting the logs.