Featured post
weblogic log4j with incorrect time in logs -
we have weblogic appserver running on unix box our application uses log4j configured dailyrollingfileappender.
when try "date" command on unix prompt shows me correct timezone (i in pacific timezone) same time in log files can see 1 hour ahead time.
like, date command shows "mon dec 20 15:10:39 pst 2010" if open log file, can see 20-dec-2010 16:10:39,773 debug xyz....
my log4j settings
log4j.appender.test=org.apache.log4j.dailyrollingfileappender log4j.appender.test.datepattern='.'yyyy-mm-dd log4j.appender.test.threshold=debug log4j.appender.test.immediateflush=true log4j.appender.test.file=test.log log4j.appender.test.append=true log4j.appender.test.layout=org.apache.log4j.patternlayout log4j.appender.test.layout.conversionpattern=%d{dd-mmm-yyyy hh:mm:ss,sss} %-5p %c:%l - %m%n
not sure if unix time proper pst time time log4j using logging, dont see log4j timezone configuration in above settings.
how can check timezone settings incorrect in weblogic ?
-rushik.
i solved problem on ubuntu,here steps 1.use tzselect command confiugre timezone 2.ln -sf /usr/share/zoneinfo/$state/$city /etc/localtime 3.ensure "/ etc/timezone" configured set timezone 4.reboot
- Get link
- X
- Other Apps
Comments
Post a Comment