Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Level ¶
type Level string
Level of the logs entity.
const ( LevelUnknown Level = "none" LevelTrace Level = "trace" LevelDebug Level = "debug" LevelInfo Level = "info" LevelWarning Level = "warn" LevelError Level = "error" LevelPanic Level = "panic" LevelFatal Level = "fatal" )
Possible log levels.
func ParseLevel ¶ added in v0.1.1
ParseLevel parses level from the text value.
type LogEntries ¶
type LogEntries []LogEntry
LogEntries is a helper type definition for the slice of log entries.
func (LogEntries) Filter ¶
func (entries LogEntries) Filter(term string) LogEntries
Filter filters entries by ignore case exact match.
func (LogEntries) Reverse ¶
func (entries LogEntries) Reverse() LogEntries
func (LogEntries) Rows ¶
func (entries LogEntries) Rows() []table.Row
Rows returns all table.Row by log entries.
type LogEntry ¶
type LogEntry struct { Fields []string Line json.RawMessage }
LogEntry is a single partly-parse record of the log.
func ParseLogEntry ¶
func ParseLogEntry( line json.RawMessage, cfg *config.Config, ) LogEntry
ParseLogEntry parses a single log entry from the json line.
Click to show internal directories.
Click to hide internal directories.