HI ,
Actually , my problem is my log4j is not logging in a proper path, i.e its
not taking the path defined in log4j.properties file.i  have attached my
log4j.properties file , and we are using custom log4j and we have added in a
shared variable of WAS, all logs are getting in a WAS logs path with a short
names , and also timestamp attached in the logs are wrong,

my Log4j.propertis file content:

log4j.logger.default=DEBUG,defaultlog^M
log4j.appender.defaultlog=org.apache.log4j.RollingFileAppender^M
log4j.appender.defaultlog.layout=org.apache.log4j.PatternLayout^M
log4j.appender.defaultlog.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss}
%5p [%t] %m%n^M
log4j.appender.defaultlog.File=/usr/WebSphere602/logs/pmt/default_WPS.log^M
log4j.appender.defaultlog.MaxFileSize=4096KB^M
log4j.appender.defaultlog.MaxBackupIndex=10^M
^M
#^M
# IL1^M
#^M
log4j.logger.il1=DEBUG,il1log^M
log4j.appender.il1log=org.apache.log4j.RollingFileAppender^M
log4j.appender.il1log.layout=org.apache.log4j.PatternLayout^M
log4j.appender.il1log.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} %5p
[%t] %m%n^M
log4j.appender.il1log.File=/usr/WebSphere602/logs/pmt/il1_ServiceRequest_WPS.log^M
log4j.appender.il1log.MaxFileSize=4096KB^M
log4j.appender.il1log.MaxBackupIndex=10^M
^M
#^M
# S1^M
#^M
log4j.logger.s1=DEBUG,s1log^M
log4j.appender.s1log=org.apache.log4j.RollingFileAppender^M
log4j.appender.s1log.layout=org.apache.log4j.PatternLayout^M
log4j.appender.s1log.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} %5p
[%t] %m%n^M
log4j.appender.s1log.File=/usr/WebSphere602/logs/pmt/S1_TransactionEventLogger_WPS.log^M
log4j.appender.s1log.MaxFileSize=4096KB^M
log4j.appender.s1log.MaxBackupIndex=10^M
^M
#^M
# S2^M
#^M
log4j.logger.s2=DEBUG,s2log^M
log4j.appender.s2log=org.apache.log4j.RollingFileAppender^M
log4j.appender.s2log.layout=org.apache.log4j.PatternLayout^M
log4j.appender.s2log.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss} %5p
[%t] %m%n^M
log4j.appender.s2log.File=/usr/WebSphere602/logs/pmt/S2_ManageTransactions_WPS.log^M
log4j.appender.s2log.MaxFileSize=4096KB^M
log4j.appender.s2log.MaxBackupIndex=10^M

Rgeads,
Yogesh

Reply via email to