cloudflare / cloudflare/pint

Support structured logging

Open
#1,107 0 comments 3 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
1k
Forks
70
Avg merge
1d 12h
Merged PRs (30d)
25

Description

Hello!

We run `pint` as a daemonset alongside our Prometheus statefulsets and while it's largely great & very helpful, GCP doesn't parse the logs at the right level since they're output to `stderr` and are just text logs:

SCR-20240917-kflk

Would you consider adding support for structured logging? I'd be happy to try a PR to add support via a flag, config file setting, or both. It looks like `slog` has a JSONHandler [type](https://pkg.go.dev/log/slog#JSONHandler), so I imagine it wouldn't be too difficult.

Cheers!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.