matrix-org/sliding-sync

Allow switching to structured logging

abeluck opened this issue · 2 comments

The codebase already uses zerolog which provides structured logging, but it's currently hardcoded to use the ConsoleWriter.

It would be great to add an env var flag to switch to structured logging for production deployments.

I suspect this is related to or a duplicate of #331.

If #420 gets merged in, JSON logging should be a quick fix.