awscloudwatchlog

package
v1.0.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSCloudWatchLogWriter

type AWSCloudWatchLogWriter struct {
	log.BatchSupport
	log.FilterSupport
	log.FormatSupport

	AccessKey     string // optional
	SecretKey     string // optional
	Region        string // required
	LogGroupName  string // required
	LogStreamName string // optional: if empty, use instance-id for log stream name
	// contains filtered or unexported fields
}

AWSCloudWatchLogWriter implements log.Writer interface and batch send log events to aws cloud watch logs.

func (*AWSCloudWatchLogWriter) Close

func (aw *AWSCloudWatchLogWriter) Close()

Close flush and close the writer

func (*AWSCloudWatchLogWriter) Flush

func (aw *AWSCloudWatchLogWriter) Flush()

Flush flush cached events

func (*AWSCloudWatchLogWriter) Write

func (aw *AWSCloudWatchLogWriter) Write(le *log.Event)

Write cache log message, flush if needed

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL