Documentation
¶
Overview ¶
Package logentries implements a logentries apex log handler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Logentries settings.
Token string // LogEntries token to use.
UseTLS bool // Whether or not to use encryption.
Address string // Address, if you want to override it.
TLSConfig *tls.Config // TLS configuration to use.
QueueLen int // Length of internal queue.
Discard bool // Specifies if logs are discarded when the queue fills.
ErrorHandling ErrorHandling // Specifies how errors should be handled.
}
Config holds the configuration options for LogEntries output.
type ErrorHandling ¶
type ErrorHandling int
ErrorHandling specifies how to deal with errors connecting to and delivering logs to LogEntries.
const ( // PanicOnError specifies that errors will panic, and connection issues // will be logged. PanicOnError ErrorHandling = iota // LogOnError specifies that errors will be logged to stderr. LogOnError // IgnoreErrors specifies that errors will not be recorded or handled. // Your logs may silently not be delivered. IgnoreErrors )
type Handler ¶
type Handler struct {
*Config
// contains filtered or unexported fields
}
Handler implementation.
Click to show internal directories.
Click to hide internal directories.