Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

初始化日志模块时应先重置beego默认的logger #823

Merged
merged 1 commit into from
Aug 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
初始化日志模块时应先重置beego默认的logger
  • Loading branch information
leilei3167 committed Nov 16, 2022
commit dbe57d7f2b321e885b4d736a74bc9b6c548d2d00
1 change: 1 addition & 0 deletions commands/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func RegisterModel() {
// RegisterLogger 注册日志
func RegisterLogger(log string) {

logs.Reset()
logs.SetLogFuncCall(true)
_ = logs.SetLogger("console")
logs.EnableFuncCallDepth(true)
Expand Down