java - Logs getting saved in prior one day file using Log4j -


i using log4j(1.2.16) logging purpose. configured following properties

log4j.appender.service_logger=org.apache.log4j.dailyrollingfileappender log4j.appender.service_logger.datepattern='.'yyyy-mm-dd 

now, have 1 file 2015-06-11 date , 1 2015-06-12, when go on using application, of logs saved in 2015-06-11 file whereas current date 2015-06-12. confusing me not able understand how partial logs goes in 1 day prior files? , happens dates. time zone of server fine. have checked https://issues.apache.org/jira/browse/log4j2-116 link, not case me.

additionally, works fine when had 1 context on tomcat. have 2 different context(configured in server.xml) on single tomcat server.

is 1 have faced scenario? please let me know if configuration required.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -