Adjusting the logging configuration

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

  1. Connect to the target server using your preferred ssh tool (e.g. putty) and log in.
  2. Become the root user:
    sudo su -
  3. Change to the folder /opt/eperi/gateway/tomcat/webapps/ROOT/WEB-INF/classes:
    cd /opt/eperi/gateway/tomcat/webapps/ROOT/WEB-INF/classes
  4. Open the log4j2.xml file in an editor (e.g. nano log4j2.xml).
  5. Adjust the configuration to your needs.
  6. Save and exit the log4j2.xml file.
  7. 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.