But when this servlet is called I can't find anywhere the logger.txt file.
Cannot put the properties file in classes, since I'll not be shipping the classes folder to the client. Instead jar file for all the classes will be shipped. Also, properties file cannot be inside the jar file, as client will have to modify the properties file.
Please tell me how it'll be created. [ April 04, 2007: Message edited by: Anjali S Sharma ]
Log4j looks on the classpath to find the properties file. Since web continers build their own classpaths, you need to place your files in particular directories if you want them to be found in such cases.
I put my log4j.properties file under /WEB-INF/classes for this reason.