Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogEntry ¶
type LogEntry struct {
Timestamp time.Time
Level LogLevel
Source string
Message string
Raw string
IsError bool
Stacktrace string
TraceID string
}
LogEntry represents a parsed log entry
type MultiParser ¶
type MultiParser struct {
// contains filtered or unexported fields
}
MultiParser manages multiple parsers and maintains state
func NewMultiParser ¶
func NewMultiParser() *MultiParser
NewMultiParser creates a new multi-format parser
func (*MultiParser) Flush ¶
func (m *MultiParser) Flush(source string) *LogEntry
Flush returns any in-progress multi-line entries
type PlainTextParser ¶
type PlainTextParser struct{}
PlainTextParser parses unstructured plain text logs
func NewPlainTextParser ¶
func NewPlainTextParser() *PlainTextParser
NewPlainTextParser creates a new plain text parser
type PythonParser ¶
type PythonParser struct {
// contains filtered or unexported fields
}
PythonParser detects and groups Python tracebacks
func NewPythonParser ¶
func NewPythonParser() *PythonParser
NewPythonParser creates a new Python traceback parser
func (*PythonParser) Flush ¶
func (p *PythonParser) Flush(source string) *LogEntry
Flush returns any in-progress traceback entry
func (*PythonParser) IsInProgress ¶
func (p *PythonParser) IsInProgress() bool
IsInProgress returns true if we're currently parsing a multi-line traceback
Click to show internal directories.
Click to hide internal directories.