# Configuring the logging of sessions ran on a AIMMS PRO on Premise¶

This article contains an example of configuring the logging of an application that is published on an AIMMS PRO on Premise platform.

Note

The AIMMS log files are created by AIMMS staff and designed to be interpreted by AIMMS staff. The meaning of log entries may not be obvious. An error or warning message in the log file does NOT necessarily indicate a problem in the application.

## Running example¶

A transport problem with two bottling locations of fresh water and two distribution centers. AIMMS project download

## Packed¶

In the .aimmspack, also a LoggerConfig.xml file is enclosed. Some parts that are specific to logging for AIMMS PRO on Prem sessions are:

The appender used.

  1 2 3 4 5 6 7 8 9 10 11 12 13  

Important in the LoggerConfig.xml file:

1. Line 3: File naming, such that not only the

2. Line 7: Pattern - especially the %d{ISO8601} such that dates can be matched.

When reporting back on an issue, including a moment when the incident happened, this information is essential.

A second part that is essential is that the above described appender, is indeed activated.

 1 2 3 4  

## This test¶

In the LoggerConfig.xml file of the enclosed example the following logger is added:

 1 2 3 4 5 6  

This logger will trace starting and finishing of AIMMS procedures. An excerpt from the log file is:

 1 2 3 4 5 2020-11-14 16:24:03,259 0x00003268 [DEBUG] {AIMMS.Trace.Procedure} Starting Procedure pr_ME1 2020-11-14 16:24:03,259 0x00003268 [DEBUG] {AIMMS.Trace.Procedure} Starting Procedure pr_ME2 2020-11-14 16:24:03,261 0x00003268 [DEBUG] {AIMMS.Trace.Procedure} Finishing Procedure pr_ME2 2020-11-14 16:24:03,261 0x00003268 [DEBUG] {AIMMS.Trace.Procedure} Finishing Procedure pr_ME1 2020-11-14 16:24:03,261 0x00003268 [DEBUG] {AIMMS.Trace.Procedure} Finishing Procedure MainExecution 

## Also provided¶

The following .zip file contains a LoggerConfig.xml that can be added to any project. You will need to add the loggers you deem necessary, or are advised to you.

AIMMS project download