Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Enhancing Logging with Structured Format

21 views
Skip to first unread message

Yinebeb Tariku

unread,
Dec 19, 2024, 5:51:01 AM12/19/24
to Tinode General

Hello,

The current logging package uses plain text, which limits automated analysis and integration with log aggregation tools. Would it be possible to update it to support structured formats like JSON for better debugging and monitoring?

Any thoughts or plans on this would be appreciated.

Yinebeb T.

Gene

unread,
Dec 19, 2024, 6:38:24 AM12/19/24
to Tinode General
It's not a bad idea per se, it's just a lot of work. We did consider switching logging to https://github.com/go-kit/log or https://github.com/sirupsen/logrus

Do you want to do it?

Yinebeb Tariku

unread,
Dec 19, 2024, 6:47:16 AM12/19/24
to Tinode General
of course I can; what about uber-go/zap logger https://github.com/uber-go/zap; which one do you prefer?

Gene

unread,
Dec 19, 2024, 6:59:39 AM12/19/24
to Tinode General
https://github.com/rs/zerolog supposedly even faster.

Yinebeb Tariku

unread,
Dec 19, 2024, 7:20:46 AM12/19/24
to Tinode General
Yes, do in depth analysis and let us discuss on the next steps.

Gene

unread,
Dec 20, 2024, 3:48:43 AM12/20/24
to Tinode General
I've created a tracking issue https://github.com/tinode/chat/issues/933
We can continue the conversation there.

Reply all
Reply to author
Forward
0 new messages