Hi
I am using a web application which is deployed on tomcat server. I am using log4j for logging purpose and use a customize Appender class DailyMaxRollingFileAppender which extends DailyRollingFileAppender. I have configured my log4j.properties file for DailyMaxRollingFileAppender. Inside DailyMaxRollingFileAppender class, I am trying to access a property from a property resource bundle. I have loaded property resource bundle in ServletContextListener. When DailyMaxRollingFileAppender is loaded by log4j, it throws NullPointerException while trying to access property resource bundle. I am confued why my property resource bundle is not loaded? Does log4j loads before the ServletContextListner is loaded? If yes , then what is the remedy for it. I mean how come I pass my attribute/parameter to my DailyMaxRollingFileAppender class. Regards, Yasir
