rs / zerolog

Zero Allocation JSON Logger
MIT License
10.33k stars 564 forks source link

Support for msgpack encoder #676

Open rohsaini opened 2 months ago

rohsaini commented 2 months ago

My Usecase: I use zerolog logging library along with fluentbit. fluentbit input plugin used is forward (https://docs.fluentbit.io/manual/pipeline/inputs/forward). zerolog encodes the log and sends it fluentbit over tcp channel.

Problem: Currently, zerolog supports json or CBOR as encoder at compile time. fluentbit forward plugin supports only msgpack binary encoding/decoding. So, there is need for support for msgpack encoding implicitly by zerolog.