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.
Describe the bug
When configuring a named logging handler (like
quarkus.log.handler.console."STRUCTURED_LOGGING"
orquarkus.log.handler.console."STRUCTURED_LOGGING_FILE"
), those handlers are always used, no matter what the value of theenable
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
https://github.com/quarkusio/quarkus/issues/17913
$upstream:17913$