Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsedLog ¶
type ParsedLog interface { // Start sets the current line to view. Start(int) // CurrLine gets the current line. CurrLine() int // Len returns how many parsed lines there are. Len() int // ReadAndNext returns a parsed line or nil and advances to the next line. ReadAndNext() *sklog.LogPayload // ReadLine sets the line to the specified number and returns the parsed line at that location. ReadLine(int) *sklog.LogPayload }
A ParsedLog is a view of lines in a log file. It implements methods to allow for random access as well as linear iterators.
func ParsePythonLog ¶
func ParseSyslog ¶
type Parser ¶
A Parser is a function that takes the text contents of a log file and returns a ParsedLog. There is one Parser for any type of logs that we support. It typically uses regular expressions to perform any parsing. In the process of parsing the logs, it basically makes a copy of every line in the log, so be aware of that memory usage.
Click to show internal directories.
Click to hide internal directories.