Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Can jazz.log entries be date stamped?

Running RTC under WAS, our jazz.log entries don't seem to have dates, just time stamps (this is separate from the log entries in the WAS SystemOut.log) ... Is there a way to control this (perhaps via log4j.properties) - we are using the default settings ... Thanks.

0 votes



One answer

Permanent link
Yes, you can control this using log4j.properties.

The log4j.properties bundled with the server uses the following pattern

log4j.appender.file=org.apache.log4j.FileAppender
log4j.appender.file.File=tomcat/logs/jazz.log
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %-50.50c - %m%n

"Absolute" formats the date in "HH:mm:ss,SSS" format.

You can change it to
- Date format : Formats a Date in the format "dd MMM yyyy HH:mm:ss,SSS"
- or ISO8601 format - Formats a Date in the format "yyyy-MM-dd HH:mm:ss,SSS"

For e.g. if you change it to ISO8601 format, the conversion pattern would look like...
log4j.appender.file.layout.ConversionPattern=%d{ISO8601} %5p %-50.50c - %m%n

The different options are described in detail at
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/PatternLayout.html


If you are using server.startup script to start the server, the lgog4j.configuration file location is specified in server.startup. If you are in WAS, you need to set the log4j.configuration property to the modfied log4j properties.

--- Balaji
Jazz Server Team




Running RTC under WAS, our jazz.log entries don't seem to have dates, just time stamps (this is separate from the log entries in the WAS SystemOut.log) ... Is there a way to control this (perhaps via log4j.properties) - we are using the default settings ... Thanks.

    0 votes

    Your answer

    Register or log in to post your answer.

    Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

    Search context
    Follow this question

    By Email: 

    Once you sign in you will be able to subscribe for any updates here.

    By RSS:

    Answers
    Answers and Comments
    Question details

    Question asked: Oct 29 '08, 5:45 p.m.

    Question was seen: 7,411 times

    Last updated: Oct 29 '08, 5:45 p.m.

    Confirmation Cancel Confirm