|
|
|
@ -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), |
|
|
|
|