From 966d105b05d5435bbbc03a7522a0a80c8041de2c Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Tue, 16 Jul 2024 09:23:34 +0200 Subject: [PATCH] oidcng: Logback should include the json syslog as well --- roles/oidcng/templates/logback.xml.j2 | 35 ++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) diff --git a/roles/oidcng/templates/logback.xml.j2 b/roles/oidcng/templates/logback.xml.j2 index c1061bac8..31322655f 100644 --- a/roles/oidcng/templates/logback.xml.j2 +++ b/roles/oidcng/templates/logback.xml.j2 @@ -8,6 +8,20 @@ + + {{ ansible_fqdn }} + 514 + {"app":"oidcng"} + + [ignore] + [ignore] + [ignore] + + + oidcngjson: + + + {{ smtp_server }} {{ noreply_email }} @@ -15,15 +29,30 @@ {{ error_subject_prefix }}Unexpected error oidcng - + + com.nimbusds.oauth2.sdk.ParseException + org.springframework.security.authentication.BadCredentialsException + oidc.exceptions.UnauthorizedException + oidc.exceptions.RedirectMismatchException + org.springframework.dao.EmptyResultDataAccessException + java.lang.IllegalArgumentException ERROR - + + - +{%if oidcng_logback_file |bool %} + +{%endif%} +{%if oidcng_logback_email |bool %} +{%endif%} + +{%if oidcng_logback_json |bool %} + +{%endif%}