Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConstructFieldIndexMap ¶
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 (Entry) IsRecordCaller ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.