The eperi sEcure Platform is shipped with a default logging
configuration. If necessary, you can adjust the configuration to your needs.
About this task
The eperi sEcure Platform uses the standard logging framework Apache Log4j™ 2. For details on how to configure it, please refer to the
documentation that is publicly available on the internet.
Procedure
-
Connect to the target server using your preferred ssh tool (e.g. putty) and log
in.
-
Become the root user:
-
Change to the folder
/opt/eperi/gateway/tomcat/webapps/ROOT/WEB-INF/classes:
cd /opt/eperi/gateway/tomcat/webapps/ROOT/WEB-INF/classes
-
Open the log4j2.xml file in an editor (e.g.
nano
log4j2.xml).
-
Adjust the configuration to your needs.
-
Save and exit the log4j2.xml file.
-
Reload the log4j logging configuration on every node the file has been adjusted on as described in section View catalina.out.
Important: In a cluster setup, the changes must be made on every
eperi sEcure Platform instance and each eperi sEcure Platform instance must be
restarted.
Results
You have successfully adjusted the logging
configuration.