package
0.2.0
Repository: https://github.com/lf-edge/eden.git
Documentation: pkg.go.dev

# Functions

HandleFactory implements HandlerFunc which prints log in the provided format.
LogChecker check logs by pattern from existence files with LogLast and use LogWatchWithTimeout with timeout for observe new files.
LogItemFind find LogItem records by reqexps in 'query' corresponded to LogItem structure.
LogItemPrint find LogItem elements by paths in 'query'.
LogLast function process Log files in the 'filepath' directoryaccording to the 'query' reqexps and return last founded item.
LogPrn print Log data.
LogTail returns LogCheckerMode for process only defined count of last messages.
LogWatch monitors the change of Log files in the 'filepath' directoryaccording to the 'query' reqexps and processing using the 'handler' function.
ParseLogEntry unmarshal LogEntry.

# Constants

use both mechanisms.
just look to existing files.
LogJSON returns log in JSON format.
LogLines returns log line by line.
wait for new files.

# Type aliases

HandlerFunc must process LogItem and return true to exitor false to continue.
LogCheckerMode is InfoExist, InfoNew and InfoAny.
LogFormat the format to print output logs.