Back to

Package cloudwatch

Latest Go to latest
Published: Jun 24, 2020 | License: Apache-2.0 | Module:


Package Files

type CloudWatchEventer

type CloudWatchEventer struct {
	// contains filtered or unexported fields

CloudWatchEventer logs events to CloudWatch Logs.

func NewCloudWatchEventer

func NewCloudWatchEventer(client cloudwatchlogsiface.CloudWatchLogsAPI, group, stream string) *CloudWatchEventer

NewCloudWatchEventer returns a *CloudWatchLogger. It does create the group or stream until the first event is logged.

func (*CloudWatchEventer) Close

func (c *CloudWatchEventer) Close() error

func (*CloudWatchEventer) Event

func (c *CloudWatchEventer) Event(typ string, fieldPairs ...interface{})

Event implements Eventer.

func (*CloudWatchEventer) Init

func (c *CloudWatchEventer) Init(ctx context.Context) error

Init initializes the group and stream used by c. It will only attempt initialization once, subsequently returning the result of that attempt.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier