add logger
This commit is contained in:
11
internal/logger/logger.go
Normal file
11
internal/logger/logger.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package logger
|
||||
|
||||
import "go.uber.org/zap"
|
||||
|
||||
func GetLogger(debug bool) (*zap.Logger, error) {
|
||||
if debug {
|
||||
return zap.NewDevelopment()
|
||||
} else {
|
||||
return zap.NewProduction()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user