Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAdapter ¶
func NewAdapter(route *router.Route) (router.LogAdapter, error)
NewAdapter instances a new AWS CloudWatch adapter.
Types ¶
type Adapter ¶
type Adapter struct {
// contains filtered or unexported fields
}
Adapter ships logs to AWS CloudWatch.
type Batcher ¶
type Batcher struct {
// contains filtered or unexported fields
}
Batcher buffers messages on a channel until a flush is triggered.
func NewBatcher ¶
NewBatcher creates a Batcher that buffers message from the input channel to the output channel.
type LogMessage ¶
LogMessage represents a log message to be sent to CloudWatch.
func (*LogMessage) Body ¶
func (l *LogMessage) Body() string
Body returns a string representation of the log.
func (*LogMessage) Size ¶
func (l *LogMessage) Size() int
Size returns the size of the log message in bytes.
func (*LogMessage) Timestamp ¶
func (l *LogMessage) Timestamp() int64
Timestamp returns the number of milliseconds since the epoch.
type LogStream ¶
type LogStream struct {
// contains filtered or unexported fields
}
LogStream ships logs to AWS CloudWatch.
func NewLogStream ¶
NewLogStream instantiates a Logger.
func (*LogStream) Log ¶
func (s *LogStream) Log(logs []*cloudwatchlogs.InputLogEvent)
Log submits a batch of logs to the LogStream.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.