Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileError ¶
type FileError struct {
// contains filtered or unexported fields
}
FileError is an error related to a file, it will be appended to the message.
type FolderLoader ¶
type FolderLoader struct { LogFolders []string // contains filtered or unexported fields }
The FolderLoader can be used to keep watching for changes in a folder. It allows reading logs as they come in, by line or just the entire files.
func NewFolderLoader ¶
func NewFolderLoader(logLocations []string) *FolderLoader
NewFolderLoader creates a new FolderLoader.
func (*FolderLoader) Close ¶
func (loader *FolderLoader) Close() error
Close stops and closes this loader. It also notifies all channels to be closed.
func (*FolderLoader) ReadFile ¶
func (loader *FolderLoader) ReadFile(filePath string) (string, error)
ReadFile reads the given log file if it exists and is in the scope of this reader.
func (*FolderLoader) StartWatching ¶
func (loader *FolderLoader) StartWatching() (chan LogMessage, error)
StartWatching for logs and return a channel with the log output.
Click to show internal directories.
Click to hide internal directories.