Skip to content

Commit

Permalink
Add log output to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
wen-templari committed Oct 31, 2023
1 parent cb60baf commit a0ae56e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ func getLogger() *logrus.Logger {
logger := logrus.New()

//设置输出
logger.Out = src
logger.SetOutput(src)
logger.SetOutput(os.Stdout)

//设置日志级别
logger.SetLevel(logrus.DebugLevel)
Expand Down

0 comments on commit a0ae56e

Please sign in to comment.