Documentation
¶
Overview ¶
Package log provides utilities to collect logs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector watches a file on remote host and collects the appended contents.
func StartCollector ¶
func StartCollector(ctx context.Context, host *ssh.Conn, p string, tailFollowNameSupported bool) (*Collector, error)
StartCollector spawns a log collector on file p on host.
Set tailFollowNameSupported to true if the host's tail implementation supports the "--follow=name" command to allow for tail following to stay at the same filename rather than follow the file if the name changes.
Click to show internal directories.
Click to hide internal directories.