Configure logging to write to separate log files for separate JVM instances

Technote (FAQ)


This document applies only to the following language version(s):

Language Independent

Question

How can logs be written to separate files when a vertical cluster is implemented using a common EAR file?

Cause

Not documented

Answer

Maximo 6 uses Log4j Java logging to generate log information. By default, the logging.properties file is set to use the Apache appender class that will write to a common log file for all applications running on the same physical server.

In some cases it is helpful to separate log files so that each Maximo application server has it’s own log. To do this, the log4j.appender must be modified to include an IBM supplied appender class.

The default setting in the logging.properties file is set as follows:

# A2 is set to be a RollingFileAppender which outputs to maximo.log file
log4j.appender.A2=org.apache.log4j.RollingFileAppender

To enable separate logs for each Maximo application server, modify the logging.properties file as follows:

# A2 is set to be a RollingFileAppender which outputs to maximo.log file
#log4j.appender.A2=org.apache.log4j.RollingFileAppender
log4j.appender.A2=psdi.util.logging.MXFileAppender

After completing the changes in the logging.properties file, the maximo.ear file must be rebuilt and redeployed.

See the following link for more information on Apache Log4j logging
http://developers.sun.com/appserver/reference/techart/log4j.html


Cross reference information
Segment Product Component Platform Version Edition
Systems and Asset Management Tivoli Change and Configuration Management Database
Systems and Asset Management Tivoli Asset Management for IT
Systems and Asset Management Tivoli Service Request Manager

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM Maximo Asset Management
System Related

Software version:

6.0, 6.1, 6.2, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.2.5, 6.2.6, 6.2.7, 6.2.8

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1291317

Modified date:

2010-07-19

Translate my page

Machine Translation

Content navigation