I meant when I stop and start the server.
In any case, I figured out the problem. Apparently log4j expects the
String representing the file path to have its path separators escaped. In
other words the string i was passing in looked something like this "c:
\jakarta4\webapps..." and it expects "
Hi.
I need to dynamically define the name of my RollingFileAppender (We have
amny environments and I don't want to have to keep on changing the config
file). Since I also don't want the headache of maintaining system
properties I decided on doing it via the code as follows:
System.setProperty("
RollingFileAppender creates new logs when a size limit is reached. I want
to keep writing to the file regardless of size for the whole day, hence the
use of DailyRollingFileAppender.
Hi all:
Can you limit the amount of files created by DailyRollingFileAppender? I
have it set up to create a new one each day but I don't want it to exceed
10 files. I know that the J2SE 1.4 logging package allows this - does
log4j offer this ability as well?
Thanks
--
To unsubscribe, e-mail:
Hi all:
I'm new to log4j so I wonder if anyone can help me with this. I set up
logging using a property file and I seem to get an error each time I try to
log.
Here is the property file:
log4j.rootLogger=DEBUG, A1
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org