Re: Can anyone explain this?

2002-07-24 Thread Isaac.Goldstein
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 "

Can anyone explain this?

2002-07-24 Thread Isaac.Goldstein
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("

Re: AW: Limit for files created

2002-07-23 Thread Isaac.Goldstein
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.

Limit for files created

2002-07-23 Thread Isaac.Goldstein
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:

Need help with configuration

2002-07-17 Thread Isaac.Goldstein
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