Enable log switching

Applies to User Roles:

System Administrator

To enable log switching, follow these steps:

  1. Stop the Service Manager server.
  2. Open the sm.ini file in a text editor.

    This file is in your Service Manager RUN directory.

  3. Type the following system parameter.

    System parameter Description
    numberoflogfiles: n

    For n, type the number of log files you want Service Manager to maintain. The minimum value is 0 (disables log switching) and the maximum value is 100. The default value is 0. If the specified number exceeds the maximum value, Service Manager uses a value of 7.

    Service Manager switches the log when the log size reaches the maximum size defined by the maxlogsize parameter. When this happens, the current log file is archived to the log file ending with 1, and the existing log files are renamed to the next higher number, so that the archive log file n+1 always contains older data than archive file n.

  4. Save your changes.
  5. Restart Service Manager.

    Service Manager uses your new log file settings.

Related topics

Disable log switching
Configure log switching by the maximum log size