Appenders « Log « JSP-Servlet Q&A





1. How do I properly Log4j, closing all Appenders and, therefore, files    stackoverflow.com

My servlet-based web-app sometimes fails to close Log4j log files when redeployed, leaking to file descriptor leakage and occassionally leading to servlet-contained dying from 'too many open files'. I have a ContextListener, ...

2. LOG4J as singleton, closing appenders on server stop and start (Attempted to append to closed appender)    stackoverflow.com

We have a j2ee web environment. The server is configured to share session and possibly classloaders across multiple webapps. Basically, one classloader could server multiple web apps. This seems to cause issues ...