mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-25 02:58:26 +08:00
zap
This commit is contained in:
parent
df78784ede
commit
9995b1c8ab
@ -59,6 +59,7 @@ func NewZapLogger() (*ZapLogger, error) {
|
||||
Development: true,
|
||||
Encoding: "json",
|
||||
EncoderConfig: zap.NewProductionEncoderConfig(),
|
||||
DisableStacktrace: true,
|
||||
InitialFields: map[string]interface{}{"PID": os.Getegid()},
|
||||
}
|
||||
zl := &ZapLogger{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user