log4j2 configuration settings

The TomEE application server uses the Apache log4j2 logging service to write application log files. Use the log4j2 configuration files to adjust the logging level or change the log storage directory.

Changing the logging level

The level of logging information can be modified by adjusting the values of the log4j.appender.<logfile_value>.Threshold properties in the file.

Log configuration files

Log configuration file Description

axAdmin-log4j2.xml

Specifies the log settings for the AX Server Configuration web application. This configuration file is only found on the AX Server.

The default log file name is axAdmin.log. The default maximum size of the log file is 5MB (5120KB) and the 10 most recent log files will be archived. The default threshold is INFO.

axCore-log4j2.xml

Specifies the log settings for AX Server and AX Engine Node.

The default log file name is axCore.log. The default maximum size of the log file is 5MB (5120KB) and the 10 most recent log files will be archived. The default threshold is INFO.

axException-log4j2.xml

Specifies the log settings for the AX Exception web application. This configuration file is only found on the server where AX Exception is installed.

axExceptionAdmin-log4j2.xml

Specifies the log settings for the AX Exception web application. This configuration file is only found on the server where AX Exception is installed.

axGateway-log4j2.xml

Specifies the log settings for Add-In for Excel. This configuration file is only found on the AX Server.

The default log file name is axGateway.log. The default maximum size of the log file is 5MB (5120KB) and the 10 most recent log files will be archived. The default threshold is INFO.

cas-log4j2.xml

Specifies the log settings for AX Server authentication. This configuration file is only found on the AX Server.

The default log file name is cas.log. The default maximum size of the log file is 10MB and the 10 most recent log files will be archived. The default threshold is INFO.

axWebclient-log4j2.xml

Specifies the log settings for AX Web Client. This configuration file is only found on the AX Server.

Change log4j2 properties

  1. Navigate to the TomCat/conf sub-folder and open the property file for the log you want to change in a text editor.
  2. Make any necessary modifications, and then save and close the file.
  3. Stop and restart the ACL Analytics Exchange Service.