Documentation ¶
Overview ¶
Package tail implements tailing a log file.
tail provides a channel on which log lines will be sent as string messages. one line in the log file is one message on the channel
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEntries ¶
GetEntries sets up a list of channels that get one line at a time from each file down each channel.
Types ¶
type Config ¶
type Config struct { // Path to the log file to tail Paths []string // Type of log rotation we expect on this file Type RotateStyle // Tail specific options Options TailOptions }
type RotateStyle ¶
type RotateStyle int
const ( // foo.log gets rotated to foo.log.1, new entries go to foo.log RotateStyleSyslog RotateStyle = iota // foo.log.OLDSTAMP gets closed, new entries go to foo.log.NEWSTAMP // NOT YET IMPLEMENTED RotateStyleTimestamp )
type TailOptions ¶
Click to show internal directories.
Click to hide internal directories.