gitea json log formatter #9819

Open
opened 2025-11-02 08:50:25 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @Baitanik on GitHub (Nov 10, 2022).

Feature Description

I think it would be good , if gitea has some json log formatter. Right now gitea does not have any json logger .
But some times json loggers necessary while deploying in k8s cluster for monitoring dashboard etc.

It would be good , if user can also define the format in values.yaml according to their need.

Screenshots

No response

Originally created by @Baitanik on GitHub (Nov 10, 2022). ### Feature Description I think it would be good , if gitea has some json log formatter. Right now gitea does not have any json logger . But some times json loggers necessary while deploying in k8s cluster for monitoring dashboard etc. It would be good , if user can also define the format in values.yaml according to their need. ### Screenshots _No response_
GiteaMirror added the type/proposal label 2025-11-02 08:50:25 -06:00
Author
Owner

@lunny commented on GitHub (Nov 10, 2022):

Should we switch to a third-party logging system?

@lunny commented on GitHub (Nov 10, 2022): Should we switch to a third-party logging system?
Author
Owner

@TheFox0x7 commented on GitHub (Jul 14, 2025):

I'd also be interested in this. It would make digging through logs a lot simpler.
Since go 1.21 there's slog, with two built-in formatters - json and logfmt (not counting the default one) and few external handlers/extensions.

We could migrate to that.

@TheFox0x7 commented on GitHub (Jul 14, 2025): I'd also be interested in this. It would make digging through logs a lot simpler. Since go 1.21 there's [slog](https://pkg.go.dev/log/slog), with two built-in formatters - json and logfmt (not counting the default one) and few external handlers/extensions. We could migrate to that.
Author
Owner

@aaricantto commented on GitHub (Sep 9, 2025):

Thought I'd bump this - I would really appreciate this feature to streamline my grafana / loki setup!

@aaricantto commented on GitHub (Sep 9, 2025): Thought I'd bump this - I would really appreciate this feature to streamline my grafana / loki setup!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9819