Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogItem ¶
type LogItem struct { ID uint `gorm:"column:id;primary_key;auto_increment;"` // id Level string `gorm:"column:level;size:20;index;"` // 日志级别 TraceID string `gorm:"column:trace_id;size:128;index;"` // 跟踪ID UserID string `gorm:"column:user_id;size:36;index;"` // 用户ID Tag string `gorm:"column:tag;size:128;index;"` // Tag Version string `gorm:"column:version;index;size:64;"` // 版本号 Message string `gorm:"column:message;size:1024;"` // 消息 Data string `gorm:"column:data;type:text;"` // 日志数据(json) ErrorStack string `gorm:"column:error_stack;type:text;"` // Error Stack CreatedAt time.Time `gorm:"column:created_at;index"` // 创建时间 }
Click to show internal directories.
Click to hide internal directories.