claptrap-go/config/logger.go
2024-07-08 18:09:43 +02:00

17 lines
198 B
Go

package config
import (
"go.uber.org/zap"
)
var Logger *zap.Logger
func InitLogger() {
var err error
Logger, err = zap.NewDevelopment()
if err != nil {
panic(err)
}
defer Logger.Sync()
}