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
Click to show internal directories.
Click to hide internal directories.