Configure log4j2 for Smart ID Self-Service
This article is valid for Smart ID 21.04 and later.
This article describes how to configure log4j2 for Smart ID Self-Service.
<SMARTIDHOME>
In this article, <SMARTIDHOME> refers to /home/nexus, but this can be different depending on the setup.
log4j2
The server side logging of Self-Service uses log4j2, you can configure it with <SMARTIDHOME>/docker/compose/selfservice/config/log4j2.xml.
See log4j2 documentation:Â https://logging.apache.org/log4j/2.x/manual/configuration.html
JSON template
You can enable the json template in the <SMARTIDHOME>/docker/compose/selfservice/config/log4j2.xml by switching from the PatternLayout to JsonTemplateLayout.
You can then modify the json template in <SMARTIDHOME>/docker/compose/selfservice/config/log4j2JsonLayout.json.
See log4j2 json template documentation:Â https://logging.apache.org/log4j/2.x/manual/json-template-layout.html
Copyright 2024 Technology Nexus Secured Business Solutions AB. All rights reserved.
Contact Nexus | https://www.nexusgroup.com | Disclaimer | Terms & Conditions