Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support structured logging #1107

Open
runofthemill opened this issue Sep 17, 2024 · 0 comments
Open

Support structured logging #1107

runofthemill opened this issue Sep 17, 2024 · 0 comments

Comments

@runofthemill
Copy link

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, so I imagine it wouldn't be too difficult.

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant