✏️ 简化&美化日志输出

This commit is contained in:
fumiama 2021-09-19 17:06:24 +08:00
parent 27fcb63601
commit 74486f65cf

View File

@ -42,7 +42,6 @@ import (
// 以下为内置依赖,勿动 // 以下为内置依赖,勿动
log "github.com/sirupsen/logrus" log "github.com/sirupsen/logrus"
easy "github.com/t-tomalak/logrus-easy-formatter"
zero "github.com/wdvxdr1123/ZeroBot" zero "github.com/wdvxdr1123/ZeroBot"
"github.com/wdvxdr1123/ZeroBot/driver" "github.com/wdvxdr1123/ZeroBot/driver"
) )
@ -58,10 +57,6 @@ var (
) )
func init() { func init() {
log.SetFormatter(&easy.Formatter{
TimestampFormat: "2006-01-02 15:04:05",
LogFormat: "[zero][%time%][%lvl%]: %msg% \n",
})
log.SetLevel(log.DebugLevel) log.SetLevel(log.DebugLevel)
} }