Can jazz.log entries be date stamped?
One answer
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
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=
"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=
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.