You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the quarkus-logging-json library (Quarkus version 2.16.1) for the JSON Logging format.
According to the documentation (https://quarkus.io/version/2.16/guides/logging#quarkus-logging-json_quarkus.log.file.json.key-overrides), I am using quarkus.log.console.json.excluded-keys and quarkus.log.console.json.key-overrides in order to exclude and override some keys: quarkus.log.console.json.excluded-keys=["loggerClassName", "sequence", "hostName", "ndc", "processId", "processName", "threadId"] quarkus.log.console.json.key-overrides="threadName=thread.name, level=log.level, loggerName=logger.name"
When setting the property for overriding I get: Failed to start application (with profile [dev]): java.lang.IllegalArgumentException: No enum constant org.jboss.logmanager.formatters.StructuredFormatter.Key."THREADNAME
If I delete it and only try to exclude the keys, none of them is excluded.
Expected behavior
quarkus.log.console.json.excluded-keys=["loggerClassName", "sequence", "hostName", "ndc", "processId", "processName", "threadId"] should exclude the keys from the list. quarkus.log.console.json.key-overrides="threadName=thread.name, level=log.level, loggerName=logger.name, mdc.traceId=traceId" should override the mentioned keys with the defined replacement names.
Actual behavior
quarkus.log.console.json.key-overrides="threadName=thread.name, level=log.level, loggerName=logger.name, mdc.traceId=traceId" fails with Failed to start application (with profile [dev]): java.lang.IllegalArgumentException: No enum constant org.jboss.logmanager.formatters.StructuredFormatter.Key."THREADNAME
quarkus.log.console.json.excluded-keys=["loggerClassName", "sequence", "hostName", "ndc", "processId", "processName", "threadId"] does not exclude any of the keys.
Describe the bug
I am using the quarkus-logging-json library (Quarkus version 2.16.1) for the JSON Logging format.
According to the documentation (https://quarkus.io/version/2.16/guides/logging#quarkus-logging-json_quarkus.log.file.json.key-overrides), I am using quarkus.log.console.json.excluded-keys and quarkus.log.console.json.key-overrides in order to exclude and override some keys:
quarkus.log.console.json.excluded-keys=["loggerClassName", "sequence", "hostName", "ndc", "processId", "processName", "threadId"] quarkus.log.console.json.key-overrides="threadName=thread.name, level=log.level, loggerName=logger.name"
When setting the property for overriding I get:
Failed to start application (with profile [dev]): java.lang.IllegalArgumentException: No enum constant org.jboss.logmanager.formatters.StructuredFormatter.Key."THREADNAME
If I delete it and only try to exclude the keys, none of them is excluded.
Expected behavior
quarkus.log.console.json.excluded-keys=["loggerClassName", "sequence", "hostName", "ndc", "processId", "processName", "threadId"]
should exclude the keys from the list.quarkus.log.console.json.key-overrides="threadName=thread.name, level=log.level, loggerName=logger.name, mdc.traceId=traceId"
should override the mentioned keys with the defined replacement names.Actual behavior
quarkus.log.console.json.key-overrides="threadName=thread.name, level=log.level, loggerName=logger.name, mdc.traceId=traceId"
fails withFailed to start application (with profile [dev]): java.lang.IllegalArgumentException: No enum constant org.jboss.logmanager.formatters.StructuredFormatter.Key."THREADNAME
quarkus.log.console.json.excluded-keys=["loggerClassName", "sequence", "hostName", "ndc", "processId", "processName", "threadId"]
does not exclude any of the keys.How to Reproduce?
quarkus.log.console.json.excluded-keys=["loggerClassName", "sequence", "hostName", "ndc", "processId", "processName", "threadId"] quarkus.log.console.json.key-overrides="threadName=thread.name, level=log.level, loggerName=logger.name"
quarkus dev
Output of
uname -a
orver
Linux devbox 5.4.0-150-generic #167~18.04.1-Ubuntu SMP Wed May 24 00:51:42 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "11.0.19" 2023-04-18 OpenJDK Runtime Environment (build 11.0.19+7-post-Ubuntu-0ubuntu118.04.1) OpenJDK 64-Bit Server VM (build 11.0.19+7-post-Ubuntu-0ubuntu118.04.1, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.16.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6
Additional information
No response
The text was updated successfully, but these errors were encountered: