Generate Log Files on the Mart Server

Mart Server can generate log files and you can configure how the log is generated.

Follow these steps:

  1. Navigate to the WEB-INF folder as follows and locate the log4j.xml file:
    • 32-bit: <installation folder>\erwin\Mart Server r9\Tomcat\Webapps\MartServer\WEB-INF
    • 64-bit: <installation folder>\erwin\Mart Server r9\Tomcat64\Webapps\MartServer\WEB-INF
  2. Modify the values for the following parameters as required:
    Priority value

    Specifies the level of logging. The priority value parameter can take the following values:

    Off

    Specifies that no log is generated.

    Info

    Specifies that a log is generated for every event.

    Error

    Specifies that a log is generated when an error occurs.

    File Name

    Specifies the path to the log file and the name of the log file. The default path and filename are as follows:

    • Path: {user account}/AppData/Local/erwin/Mart Server/logs
    • Filename: application.log

    The maximum size of the log file is 1 MB. If the file exceeds the maximum size, another log file is created in the same location. When multiple log files are generated, the filenames include the serial number of the file in ascending order.

  3. Save the file.
  4. Restart the Mart Server service.

Enable Logging

To enable logging in a user's AppData while using Mart Server as a Windows Service, do the following:

  1. Once the service is created, go to service properties.
  2. On the Log On tab, click This Account.
  3. Enter the credentials.
  4. Start the service.

    Logging is now enabled for your instance of Mart Server as a Windows service. The log file, application.log, will be created at C:\Windows\System32\config\systemprofile\AppData\Local\erwin\Mart Server\logs\.