Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MessageTransform ¶
type MessageTransform func(string, events.CloudwatchLogsLogEvent) (string, bool)
MessageTransform is a function that is used for applying conditional transforms to log messages. The first argument passed is the raw log message, the second one is the entire event. It can return false as its second return value to signal that the event should be skipped and not be forwarded to Papertrail.
type Option ¶
type Option func(configuration) configuration
Option is a function that transforms the default configuration
func WithMessageTransform ¶
func WithMessageTransform(transform MessageTransform) Option
WithMessageTransform defines a transform that will be applied to the log message
func WithPapertrailHost ¶
WithPapertrailHost sets the host of the Papertrail log target
func WithPapertrailPort ¶
WithPapertrailPort sets the port value for the Papertrail log target
Click to show internal directories.
Click to hide internal directories.