Skip to content

Commit

Permalink
packaging: keycloak file logger
Browse files Browse the repository at this point in the history
This patch add a file logger dedicated for keycloak runtime messages.
Before that patch all mentioned messaged went to server.log
  • Loading branch information
arso committed Apr 7, 2022
1 parent b26dcc9 commit 867f0f5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packaging/services/ovirt-engine/ovirt-engine.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,18 @@
<append value="true"/>
</file-handler>

{% if config.getboolean('KEYCLOAK_BUNDLED') %}
<!-- Keycloak messages go here: -->
<file-handler name="KEYCLOAK" autoflush="true">
<level name="ALL"/>
<formatter>
<named-formatter name="WITH_CORRELATION_ID"/>
</formatter>
<file path="{{ config.get('ENGINE_LOG') }}/keycloak.log"/>
<append value="true"/>
</file-handler>
{% endif %}

<!-- Console -->
<console-handler name="CONSOLE" autoflush="true">
<level name="ALL"/>
Expand Down Expand Up @@ -232,6 +244,20 @@
{% endif %}
</handlers>
</logger>

{% if config.getboolean('KEYCLOAK_BUNDLED') %}
<!-- Loggers for the Keycloak: -->
<logger category="org.keycloak" use-parent-handlers="false">
<level name="INFO"/>
<handlers>
<handler name="KEYCLOAK"/>
{% if config.getboolean('SYSLOG_HANDLER_ENABLED') and config.getboolean('KEYCLOAK_BUNDLED') %}
<handler name="SYSLOG"/>
{% endif %}
</handlers>
</logger>
{% endif %}

<!-- Loggers for the UI -->
<logger category="org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService" use-parent-handlers="false">
<level name="INFO"/>
Expand Down

0 comments on commit 867f0f5

Please sign in to comment.