Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Target)
Option is a function type that accepts a pointer Target
func WithAuthToken ¶
WithAuthToken adds a new authorization header to be sent to target.
func WithLogKind ¶
WithLogKind adds a log type for this target
func WithTransport ¶
WithTransport adds a custom transport with custom timeouts and tuning.
func WithUserAgent ¶
WithUserAgent adds a custom user-agent sent to the target.
type Target ¶
type Target struct {
// contains filtered or unexported fields
}
Target implements logger.Target and sends the json format of a log entry to the configured http endpoint. An internal buffer of logs is maintained but when the buffer is full, new logs are just ignored and an error is returned to the caller.
Click to show internal directories.
Click to hide internal directories.