Skip to content

Commit

Permalink
日志初始化从外部执行
Browse files Browse the repository at this point in the history
  • Loading branch information
gowater committed Oct 9, 2023
1 parent eb4f039 commit 4510952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

var log *zap.Logger

func init() {
func InitZap() {
log = NewLogger()
}

Expand Down

0 comments on commit 4510952

Please sign in to comment.