17 lines
198 B
Go
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()
|
|
}
|