add logger

This commit is contained in:
2025-11-24 10:32:01 +03:00
parent d8b4916801
commit 22d4eb71a4
4 changed files with 44 additions and 3 deletions

11
internal/logger/logger.go Normal file
View 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()
}
}