From 6ee16e1d46ef47d227697691fc231ccc7cc384be Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 24 一月 2022 11:51:28 +0800
Subject: [PATCH] 添加日志等级

---
 vaSystemLog.go |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/vaSystemLog.go b/vaSystemLog.go
index ad520e0..79b9220 100644
--- a/vaSystemLog.go
+++ b/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"`                     // 涓绘満鍚�

--
Gitblit v1.8.0