log4j level has a null value
Hello. I�ve been having a little trouble with log4j. I have an application in which the Actions (struts) all have the log4j declaration (private static Logger logger = Logger.getLogger(Restaurants.class);). In the log4j.properties the level is set to �debug�. Then, in the Actionservlet it is set again to �all�. The problem is that sometimes when the program gets executed and enters to some methods, the level (getlevel()) has a null value. Why is this and how can it be resolved? I could put the first line of every method �logger.setLevel(�ALL�)�, but it wouldn�t be a good solution. Any tips? Thanks a lot.