Skip to content

Allow customizing written log entries by exposing parameters via appender configuration #551

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

Closed
minherz opened this issue Sep 24, 2021 · 1 comment · Fixed by #625
Closed
Assignees
Labels
api: logging Issues related to the googleapis/java-logging-logback API. lang: java Issues specific to Java. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@minherz
Copy link
Contributor

minherz commented Sep 24, 2021

Is your feature request related to a problem? Please describe.
Writing log entries can be customized by providing user metadata as labels (a map of key, value pairs), customizing the logger name and which project it is located. The data cannot be customized when logging using the appender.

Describe the solution you'd like
It would be great to use logback configuration to provide these values (user labels, log name and custom project location) per appender instance.

Describe alternatives you've considered
There are no good alternative if the logback appender is used.

Additional context
There is PR #371 that partially addresses the problem. Unfortunately, the current set of WriteOption options does not allow to customize the log location for the LOG_NAME option.

@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/java-logging-logback API. label Sep 24, 2021
@minherz minherz assigned minherz and unassigned simonz130 Sep 24, 2021
@minherz minherz added lang: java Issues specific to Java. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Sep 24, 2021
@minherz
Copy link
Contributor Author

minherz commented Sep 24, 2021

Follow up on googleapis/java-logging#684 before implementing this.

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-logback API. lang: java Issues specific to Java. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
3 participants