zhangzengfei
2022-01-24 6ee16e1d46ef47d227697691fc231ccc7cc384be
添加日志等级
1个文件已修改
10 ■■■■■ 已修改文件
vaSystemLog.go 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vaSystemLog.go
@@ -2,6 +2,16 @@
import "encoding/json"
const (
    DebugLevel = iota - 1
    InfoLevel
    WarnLevel
    ErrorLevel
    DPanicLevel
    PanicLevel
    FatalLevel
)
type VaSystemLog struct {
    ID         string `gorm:"column:id;primaryKey;unique;autoIncrement" json:"id"` // 主键id
    HostName   string `gorm:"column:hostName" json:"hostName"`                     // 主机名