Frezyx / talker

☎️ Advanced error handler and logger for dart and flutter apps
https://pub.dev/packages/talker
MIT License
478 stars 57 forks source link

Add a gRPC logger #214

Open JPFrancoia opened 5 months ago

JPFrancoia commented 5 months ago

As discussed in this issue: https://github.com/Frezyx/talker/issues/201#issuecomment-2007923585.

This PR adds a gRPC logger. This logger was inspired by the http logger and works very similarly. The logger can be used to instrument a gRPC client, allowing to transparently log gRPC calls. The logger obfuscates authorization tokens by default (I find it really insecure to write tokens to the logs), but this can be disabled if needs be. For now, it only supports unary RPCs, but adding streaming RPCs shouldn't be too difficult.

JPFrancoia commented 4 months ago

Thanks! I don't have merge power on this repo though, someone with permission needs to merge

JPFrancoia commented 4 months ago

All comments addressed!

JPFrancoia commented 2 months ago

Hey, should we merge this?