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

packaging: keycloak file logger #245

Merged
merged 1 commit into from
Apr 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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