Documentation ¶
Index ¶
Constants ¶
View Source
const ( // The program on fuchsia used to stream system logs through a shell, not to // be confused with the zircon host tool "loglistener" (no underscore) used // to stream zircon-level logs to host. LogListener = "/bin/log_listener" )
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 ¶
NewSyslogger creates a new Syslogger, given an SSH session with a Fuchsia instance.
func (*Syslogger) IsRunning ¶
IsRunning returns whether the syslog is still streaming. Once the goroutine started in Stream() completes, this should return false.
func (*Syslogger) Stream ¶
Stream writes system logs to a given writer, starting from the very beginning of the system's uptime. It keeps running until the context is canceled or until an unexpected (not SSH-related) error occurs; otherwise, it returns errors to the returned channel to signify the syslog was interrupted and restarted.
Click to show internal directories.
Click to hide internal directories.