message

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConstructFieldIndexMap

func ConstructFieldIndexMap() map[string]int

func GetEntryValues

func GetEntryValues(entry *Entry) []interface{}

Types

type Entry

type Entry struct {
	LogName    string
	FileName   string
	FilePath   string
	TraceID    string
	CallerName string
	ErrMsg     string
	Message    string
	RoutineID  int64
	CallerLine int
	Time       time.Time
	Level      level.LogLevel
	Caller     *runtime.Frame
}

func (*Entry) FillRecord added in v0.3.0

func (e *Entry) FillRecord(timestampFormat string) *Record

func (Entry) IsRecordCaller

func (e Entry) IsRecordCaller() bool

type Record

type Record struct {
	CallerLine int    `json:"caller_line,omitempty"`
	Pid        int    `json:"pid,omitempty"`
	RoutineID  int64  `json:"routine_id,omitempty"`
	Module     string `json:"module,omitempty"`
	Level      string `json:"level,omitempty"`
	Datetime   string `json:"datetime,omitempty"`
	Timestamp  int64  `json:"timestamp,omitempty"`
	FileName   string `json:"file,omitempty"`
	CallerName string `json:"caller_name,omitempty"`
	IP         string `json:"ip,omitempty"`
	HostName   string `json:"host,omitempty"`
	TraceID    string `json:"trade_id,omitempty"`
	Message    string `json:"msg,omitempty"`
	ErrMsg     string `json:"err_msg,omitempty"`
}

Jump to

Keyboard shortcuts

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