Re: log4j writing to ServletContext.log()

2003-01-20 Thread Bill Schneider
initialize Log4j using the Log4jConfigurator class, * this will be done for you. The servletContext property is static; * because each webapp gets its own classloader there is a one-to-one * mapping between servlet contexts and instances of * ServletLogAppender.class. * * @author Bill Schneider

log4j writing to ServletContext.log()

2003-01-17 Thread Bill Schneider
To get around the problems I was having with log4j in a clustered environment (multiple processes on one filesystem), I wrote a new appender that writes to the servlet log as if you called servletContext.log(...). Has anyone thought of doing this before? Hadn't seen much on the lists about it. I

DailyRollingFileAppender in clustered environment

2002-12-18 Thread Bill Schneider
Hey, I'm using log4j in a clustered J2EE webapp environment, where there are 4 concurrent JVM processes running the same webapp and using the same log4j configuration, appending to the same log file. We're using a DailyRollingFileAppender, so the file should be rolled at midnight every night.