|
|
@ -35,9 +35,9 @@ func NewLogger(c *LoggerConfig) (log.Logger, func()) { |
|
|
|
switch c.Env { |
|
|
|
switch c.Env { |
|
|
|
default: |
|
|
|
default: |
|
|
|
l = NewStdLogger(os.Stdout) |
|
|
|
l = NewStdLogger(os.Stdout) |
|
|
|
case enum.EnvLocal: |
|
|
|
case enum.Env_Local.String(): |
|
|
|
l = NewStdLogger(os.Stdout) |
|
|
|
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( |
|
|
|
l = NewAliyunLog( |
|
|
|
WithAccessKey(c.AliLogConfig.AccessKey), |
|
|
|
WithAccessKey(c.AliLogConfig.AccessKey), |
|
|
|
WithAccessSecret(c.AliLogConfig.AccessSecret), |
|
|
|
WithAccessSecret(c.AliLogConfig.AccessSecret), |
|
|
|