parser

package
v0.0.0-...-165a1b0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: LGPL-2.1 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevelOrderRelation map[string]int = map[string]int{
	"DEBUG":   0,
	"INFO":    1,
	"WARNING": 2,
	"ERROR":   3,
}

Functions

This section is empty.

Types

type LogLine

type LogLine struct {
	ThreadID string      `json:"thread_id"`
	Time     string      `json:"time"`
	Mtime    string      `json:"mtime"`
	Level    string      `json:"level"`
	Mode     string      `json:"mode"`
	Class    string      `json:"class"`
	Function string      `json:"function"`
	File     string      `json:"file"`
	Line     int         `json:"line"`
	Message  string      `json:"message"`
	Stack    []StackItem `json:"stack"`
}

func ParseLogLine

func ParseLogLine(line []byte) *LogLine

type LogLineArray

type LogLineArray []*LogLine

func (LogLineArray) GetBigestMtime

func (lla LogLineArray) GetBigestMtime() int

func (LogLineArray) GetHighestLogLevel

func (lla LogLineArray) GetHighestLogLevel() string

func (LogLineArray) GetLastMessage

func (lla LogLineArray) GetLastMessage() string

type StackItem

type StackItem struct {
	File     string   `json:"file"`
	Function string   `json:"function"`
	Line     int      `json:"line"`
	Args     []string `json:"args"`
	Class    string   `json:"class"`
	Type     string   `json:"type"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL