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
Copy file name to clipboardExpand all lines: docs/guides/server/logging.adoc
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,6 +69,25 @@ This example sets the following log levels:
69
69
* The hibernate log level in general is set to debug.
70
70
* To keep SQL abstract syntax trees from creating verbose log output, the specific subcategory `org.hibernate.hql.internal.ast` is set to info. As a result, the SQL abstract syntax trees are omitted instead of appearing at the `debug` level.
71
71
72
+
==== Configuring levels as individual options
73
+
When configuring category-specific log levels, you can also set the log levels as individual `log-level-<category>` options instead of using the `log-level` option for that.
74
+
This is useful when you want to set the log levels for selected categories without overwriting the previously set `log-level` option.
you can then set an environmental variable `KC_LOG_LEVEL_ORG_KEYCLOAK=trace` to change the log level for the `org.keycloak` category.
82
+
83
+
The `log-level-<category>` options take precedence over `log-level`. This allows you to override what was set in the `log-level` option.
84
+
For instance if you set `KC_LOG_LEVEL_ORG_HIBERNATE=trace` for the CLI example above, the `org.hibernate` category will use the `trace` level instead of `debug`.
85
+
86
+
Bear in mind that when using the environmental variables, the category name must be in uppercase and the dots must be replaced with underscores.
87
+
When using other config sources, the category name must be specified "as is", for example:
Copy file name to clipboardExpand all lines: quarkus/config-api/src/main/java/org/keycloak/config/LoggingOptions.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,12 @@ public String toString() {
60
60
.description("The log level of the root category or a comma-separated list of individual categories and their levels. For the root category, you don't need to specify a category.")
0 commit comments