You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created this myself, but it could be added to the library. For logs that do not conform to standards.
// --- Dummy format that just puts the whole log line in logParts["content"] ---// Actually, the syslog.RFC3164 format also puts the unparsed "content" field,// but wastes times trying to parse lines that have a custom format.varnoFormat=&NoFormat{}
typeNoFormatstruct{}
func (fNoFormat) GetParser(line []byte) format.LogParser {
return&noFormatParser{string(line)}
}
func (fNoFormat) GetSplitFunc() bufio.SplitFunc {
returnnil// not used
}
typenoFormatParserstruct {
linestring
}
func (cnoFormatParser) Dump() format.LogParts {
return format.LogParts{
"content": string(c.line),
}
}
func (cnoFormatParser) Parse() error {
returnnil// doesn't parse anything
}
func (cnoFormatParser) Location(location*time.Location) {
// not used
}
The text was updated successfully, but these errors were encountered:
I created this myself, but it could be added to the library. For logs that do not conform to standards.
The text was updated successfully, but these errors were encountered: