Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BrightGreen bright green output colour BrightGreen = iota // BrightYellow bright yellow output colour BrightYellow // BrightBlue bright blue output colour BrightBlue // BrightRed bright red output colour BrightRed // NoColour no output colour NoColour // Can use to default to no colour output )
Variables ¶
This section is empty.
Functions ¶
func GetOutput ¶ added in v0.1.3
GetOutput get output from a log line consisting of the timestamp prefix and potentially JSON payload
func IndentJSON ¶ added in v0.1.3
IndentJSON read json in then write it out indented
Types ¶
type FollowedFile ¶
FollowedFile a file being tailed (followed). Uses the tail library which has undoubtedly taken many hours to get working well.
func NewFollowedFileForPath ¶
func NewFollowedFileForPath(path string) (ff *FollowedFile, err error)
NewFollowedFileForPath create a new file that will start tailing
func (*FollowedFile) Unlock ¶
func (ff *FollowedFile) Unlock()
Unlock channel for file by writing to channel
Click to show internal directories.
Click to hide internal directories.