Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var E4LogFields = []string{"timestamp", "host", "application", "component", "log_level", "thread_name", "extend", "msg"}
Functions ¶
func CheckFields ¶
func CheckMapKey ¶
func Contains ¶
func Contains[T comparable](s []T, e T) bool
Types ¶
type E4Log ¶
type E4Log struct {
Timestamp time.Time `json:"timestamp"` //时间戳
Host string `json:"host"` //主机地址
Application string `json:"application"` //组件
Component string `json:"component"` //模块
LogLevel string `json:"log_level"` //日志级别
ThreadName string `json:"thread_name"` //进程名称
Extend E4Extend `json:"extend"` //扩展属性
Msg string `json:"msg"` //消息体
}
func (*E4Log) ExampleLine ¶
func (*E4Log) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.