go的logrus日志管理

版权声明:by DongBao https://blog.csdn.net/aaaadong/article/details/91381466

参考 https://www.oschina.net/p/logrus

package main

import (
	"github.com/sirupsen/logrus"
	"time"
)

func main() {
	logrus.Println("日志打印测试")
	logrus.WithField("time", time.Now()).Errorln("log err test")
}

日志很好用,也好看

猜你喜欢

转载自blog.csdn.net/aaaadong/article/details/91381466
今日推荐