Sun Java System Instant Messaging 7.2 Administration Guide

ProcedureTo Set Log4j Log Levels for Instant Messaging

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:


    im-svr-base/lib
  2. For each component, specify the logging level you want to use.

    For example, to set the log level for the server:


    log4j.logger.xmppd=log-level
    

    Where log-level is one of FATAL, ERROR, WARNING, INFO, or DEBUG.

    See Table 13–1 for detailed information on each of these logging levels.

  3. Save and close log4j.conf.template.

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