Sun Java System Instant Messaging 7.2 Administration Guide

ProcedureTo Specify the Maximum Log4j Log File Size for Instant Messaging Components

You can set log levels by modifying either the template or the log configuration file. However, if you only modify the configuration file, any changes you make will be overwritten the next time you run configure. To prevent this, you should make your changes to both the configuration file and the template.

  1. Open log4j.conf.template.

    By default, this file is stored in the following location:

  2. For each component, specify the maximum size for the component's log file.

    For example, to set the size for the server log file:


    Where A1 is the default appender ID for the server, max-logfile-size is in MB, for example 5MB.

  3. Repeat the procedure for the configuration file log4j.conf.