diff --git a/glog/v1/logger.go b/glog/v1/logger.go index 6daf62b..1c8a94f 100644 --- a/glog/v1/logger.go +++ b/glog/v1/logger.go @@ -35,9 +35,9 @@ func NewLogger(c *LoggerConfig) (log.Logger, func()) { switch c.Env { default: l = NewStdLogger(os.Stdout) - case enum.EnvLocal: + case enum.Env_Local.String(): l = NewStdLogger(os.Stdout) - case enum.EnvDevelop, enum.EnvPre, enum.EnvProduct: + case enum.Env_Develop.String(), enum.Env_Preview.String(), enum.Env_Production.String(): l = NewAliyunLog( WithAccessKey(c.AliLogConfig.AccessKey), WithAccessSecret(c.AliLogConfig.AccessSecret),