logs

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package logs implements AWS CloudWatchLogs tailing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.6.0

type Config struct {
	Service       cloudwatchlogsiface.CloudWatchLogsAPI
	FilterPattern string
	PollInterval  time.Duration
	StartTime     time.Time
	Follow        bool
}

Config is used to configure Logs and Log.

type Event added in v0.6.0

type Event struct {
	GroupName string
	Message   string
}

Event is a single log event from a group.

type Log added in v0.6.0

type Log struct {
	Config
	GroupName string
	Log       log.Interface
	// contains filtered or unexported fields
}

Log implements log fetching and polling for CloudWatchLogs, and represents a single group.

func (*Log) Err added in v0.6.0

func (l *Log) Err() error

Err returns the first error, if any, during processing.

func (*Log) Start added in v0.6.0

func (l *Log) Start() <-chan *Event

Start consuming logs.

type Logs

type Logs struct {
	Config
	GroupNames []string
	// contains filtered or unexported fields
}

Logs fetches or tails logs from CloudWatchLogs for any number of groups.

func (*Logs) Err

func (l *Logs) Err() error

Err returns the error, if any, during processing.

func (*Logs) Start added in v0.6.0

func (l *Logs) Start() <-chan *Event

Start consuming logs.

Jump to

Keyboard shortcuts

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