mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-05-04 09:09:02 +08:00
zap
This commit is contained in:
parent
2c08e1c361
commit
9d80220d68
@ -59,7 +59,7 @@ func NewZapLogger() (*ZapLogger, error) {
|
|||||||
Development: true,
|
Development: true,
|
||||||
Encoding: "json",
|
Encoding: "json",
|
||||||
EncoderConfig: zap.NewProductionEncoderConfig(),
|
EncoderConfig: zap.NewProductionEncoderConfig(),
|
||||||
//InitialFields: map[string]interface{}{"PID": os.Getegid()},
|
InitialFields: map[string]interface{}{"PID": os.Getegid()},
|
||||||
}
|
}
|
||||||
zl := &ZapLogger{}
|
zl := &ZapLogger{}
|
||||||
if config.Config.Log.Stderr {
|
if config.Config.Log.Stderr {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user