feat(project): 项目完结
This commit is contained in:
10
internal/infrastructure/logging/logger.go
Normal file
10
internal/infrastructure/logging/logger.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package logging
|
||||
|
||||
import "go.uber.org/zap"
|
||||
|
||||
func New(env string) (*zap.Logger, error) {
|
||||
if env == "prod" || env == "production" {
|
||||
return zap.NewProduction()
|
||||
}
|
||||
return zap.NewDevelopment()
|
||||
}
|
||||
Reference in New Issue
Block a user