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 JSON logging to stderr #1026

Closed
bpcreech opened this issue Aug 6, 2022 · 0 comments · Fixed by #1027
Closed

Support JSON logging to stderr #1026

bpcreech opened this issue Aug 6, 2022 · 0 comments · Fixed by #1027
Assignees
Labels
api: logging Issues related to the googleapis/java-logging API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@bpcreech
Copy link
Contributor

bpcreech commented Aug 6, 2022

The LoggingHandler currently has a mode to log JSON to stdout, using the structured logging format.

In constrast, many organizations standardize on stderr for logging, with stdout being reserved "for regular output". I work for such an organization. :) Of course, one could argue that the java-logging library is primarily for servers which have no regular output, but nonetheless it seems useful to add a stderr option onto this library.

I'll send a PR for this.

@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/java-logging API. label Aug 6, 2022
@losalex losalex added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p2 Moderately-important priority. Fix may not be included in next release. labels Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/java-logging API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants