Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParseResult ¶
type ParseResult struct {
Timestamp time.Time
Found bool
Remaining string // Text with timestamp removed (for log message extraction)
}
ParseResult contains the parsed timestamp and remaining text
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser handles timestamp detection and parsing from log lines
func (*Parser) ExtractLogMessage ¶
ExtractLogMessage extracts the log message from a full log line by removing timestamp and severity
func (*Parser) ParseFromText ¶
func (p *Parser) ParseFromText(text string) ParseResult
ParseFromText extracts and parses the first timestamp found in text
func (*Parser) ParseTimestamp ¶
ParseTimestamp attempts to parse a timestamp from various string and numeric formats
Click to show internal directories.
Click to hide internal directories.