This commit is contained in:
wangchuxiao 2023-03-10 20:58:44 +08:00
parent ee738e11cd
commit a348af74fa

View File

@ -69,6 +69,7 @@ func NewZapLogger() (*ZapLogger, error) {
Encoding: "json",
EncoderConfig: zap.NewProductionEncoderConfig(),
OutputPaths: []string{"stdout"},
ErrorOutputPaths: []string{"stdout"},
Sampling: &zap.SamplingConfig{
Initial: 0,
Thereafter: 0,