logger

package
v0.0.0-...-a79519d Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogMessage

type LogMessage struct {
	Source    string    // Source means stdin, stdout or stderr
	Line      []byte    // Line means the log content, but it maybe partial
	Timestamp time.Time // Timestamp means the created time of line

	Err error
}

LogMessage represents the log message in the container json log.

type LogWatcher

type LogWatcher struct {
	Msgs chan *LogMessage
	Err  chan error
	// contains filtered or unexported fields
}

LogWatcher is used to pass the log message to the reader.

func NewLogWatcher

func NewLogWatcher() *LogWatcher

NewLogWatcher returns new LogWatcher.

func (*LogWatcher) Close

func (w *LogWatcher) Close()

Close closes LogWatcher.

func (*LogWatcher) WatchClose

func (w *LogWatcher) WatchClose() <-chan struct{}

WatchClose returns the close notifier.

type ReadConfig

type ReadConfig struct {
	Since  time.Time
	Until  time.Time
	Tail   int
	Follow bool
}

ReadConfig is used to

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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