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

Named logging handlers can't be disabled #17913

Closed
geoand opened this issue Jun 15, 2021 · 0 comments · Fixed by #17914
Closed

Named logging handlers can't be disabled #17913

geoand opened this issue Jun 15, 2021 · 0 comments · Fixed by #17914
Assignees
Labels
area/logging kind/bug Something isn't working
Milestone

Comments

@geoand
Copy link
Contributor

geoand commented Jun 15, 2021

Describe the bug

When configuring a named logging handler (like quarkus.log.handler.console."STRUCTURED_LOGGING" or quarkus.log.handler.console."STRUCTURED_LOGGING_FILE"), those handlers are always used, no matter what the value of the enable flag is for that named handler.

Expected behavior

The named handler's enable flag is taken into account and can be used to disable a named handler.

Additional context

The problem was originally reported at https://stackoverflow.com/q/67959479/2504224

@geoand geoand added the kind/bug Something isn't working label Jun 15, 2021
@geoand geoand self-assigned this Jun 15, 2021
geoand added a commit to geoand/quarkus that referenced this issue Jun 15, 2021
gastaldi added a commit that referenced this issue Jun 15, 2021
Take 'enable' field into account for named logging handlers
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jun 15, 2021
@gsmet gsmet modified the milestones: 2.1 - main, 2.0.0.Final Jun 21, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/logging kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants