Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyTime = "time" KeyLevel = "level" KeyMsg = "msg" KeyArgs = "args" KeyThreadName = "thread" KeyPathName = "path" KeyLineNo = "lineno" KeyTraceback = "traceback" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Log ¶
type Log struct { Msg string `json:"msg"` Level string `json:"level"` Time *time.Time `json:"time,omitempty"` FS string `json:"fs"` FileName string `json:"file_name"` Line int `json:"line"` Offset int `json:"offset"` Thread string `json:"thread,omitempty"` Path string `json:"path,omitempty"` LineNo int `json:"lineno"` }
type Memory ¶
type Memory struct {
// contains filtered or unexported fields
}
Memory is used to remember which parser applied for a file the same Memory object should be passed to Parse when parsing lines from the same file
type Parse ¶
type Parse []parser
func (*Parse) AppendJournal ¶
AppendJournal appends a journalctl parser to a parser list
Click to show internal directories.
Click to hide internal directories.