This commit is contained in:
wangchuxiao
2023-03-10 20:02:07 +08:00
parent bebe89162f
commit c624880863
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ func NewZapLogger() (*ZapLogger, error) {
Encoding: "json",
EncoderConfig: zap.NewProductionEncoderConfig(),
OutputPaths: []string{config.Config.Log.StorageLocation},
ErrorOutputPaths: []string{"stderr"},
ErrorOutputPaths: []string{config.Config.Log.StorageLocation},
}
l, err := zapConfig.Build()
if err != nil {