logs

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 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

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

type Event struct {
	GroupName string
	Message   string
}

Event is a single log event from a group.

type Log

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

func (l *Log) Err() error

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

func (*Log) Start

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

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