Skip to content

Commit

Permalink
feat: 添加日志输入文件和函数名称
Browse files Browse the repository at this point in the history
  • Loading branch information
danmuking committed Apr 12, 2024
1 parent 7c67bb7 commit e7be1a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion global/init_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func init() {

//设置日志级别
Logger.SetLevel(logrus.DebugLevel)

Logger.SetReportCaller(true)
//设置日志格式
Logger.SetFormatter(&logrus.TextFormatter{
TimestampFormat: "2006-01-02 15:04:05",
Expand Down

0 comments on commit e7be1a9

Please sign in to comment.