From db46df21338e4bf16f20bfe3bf6a4ea5aa222fc8 Mon Sep 17 00:00:00 2001 From: crusader Date: Wed, 22 Aug 2018 17:17:22 +0900 Subject: [PATCH] ing --- log.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/log.go b/log.go index 0dfc3b9..cc9ad60 100644 --- a/log.go +++ b/log.go @@ -8,9 +8,9 @@ import ( "go.uber.org/zap" ) -var logger *zap.SugaredLogger +var logger *zap.Logger -func Logger() *zap.SugaredLogger { +func Logger() *zap.Logger { if nil == logger { log.Panicf("Initialize Logger first to use Logger") } @@ -31,15 +31,15 @@ func InitializeLogger(configPath string) error { if _logger, err = zap.NewDevelopment(); nil != err { return err } - logger = _logger.Sugar() - logger.Infof("Logger has been initialized as development mode") + logger = _logger + logger.Info("Logger has been initialized as development mode") return nil } if _logger, err = cfg.Build(); nil != err { return err } - logger = _logger.Sugar() + logger = _logger return nil }