Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Eventer ¶
type Eventer struct {
// contains filtered or unexported fields
}
Eventer logs events to CloudWatch Logs.
func NewEventer ¶
func NewEventer( client cloudwatchlogsiface.CloudWatchLogsAPI, group, stream string, options ...EventerOption, ) *Eventer
NewEventer returns a *CloudWatchLogger. It does create the group or stream until the first event is logged.
type EventerOption ¶
type EventerOption func(*opts)
func OptNow ¶
func OptNow(now func() time.Time) EventerOption
OptNow configures NewEventer to obtain timestamps from now. now must be non-nil.
Example use case: reducing precision to make it more difficult to correlate which events likely came from the same user (who may have done a few things in one minute, etc.).
Click to show internal directories.
Click to hide internal directories.