syslog

package
v0.0.0-...-8023e94 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Syslogger

type Syslogger struct {
	// contains filtered or unexported fields
}

Syslogger streams systems logs from a Fuchsia instance.

func NewSyslogger

func NewSyslogger(client *sshutil.Client) *Syslogger

NewSyslogger creates a new Syslogger, given an SSH session with a Fuchsia instance.

func (*Syslogger) Stream

func (s *Syslogger) Stream(ctx context.Context, output io.Writer) error

Stream writes system logs to a given writer, starting from the very beginning of the system's uptime. It blocks until the context is canceled or until an unexpected (not SSH-related) error occurs.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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