Re: DailyRollingFileAppender help needed please

2007-03-16 Thread James Stauffer
That log4j output is telling you that maxLogs isn't a valid property of DailyRollingFileAppender. DailyRollingFileAppender only uses the date pattern when it needs to roll. The current file is always named exactly the value of the File property. From javadocs: For example, if the File option i

RE: DailyRollingFileAppender help needed please

2007-03-16 Thread Andrew Marlow
James Stauffer wrote: > maxLogs isn't a value of that appender in 1.2. You may be > thinking of RollingFileAppender or 1.3. The question is, "what is log4j thinking of?". After all, it is log4j that says: >> log4j:WARN No such property [maxLogs] in >> org.apache.log4j.DailyRollingFileAppender.

Re: DailyRollingFileAppender help needed please

2007-03-16 Thread James Stauffer
maxLogs isn't a value of that appender in 1.2. You may be thinking of RollingFileAppender or 1.3. Don't put the pattern in the File value. On 3/16/07, Andrew Marlow <[EMAIL PROTECTED]> wrote: James Stauffer wrote: > There are no included appenders that can do that. You could > easily writ

RE: DailyRollingFileAppender help needed please

2007-03-16 Thread Andrew Marlow
James Stauffer wrote: > There are no included appenders that can do that. You could > easily write your own appender to do that or use > DailyRollingFileAppender to roll every hour and then have 6 > files for each "watch". ok, but ... The name of the file that gets created contains a literal 'yy

Re: DailyRollingFileAppender help needed please

2007-03-16 Thread James Stauffer
There are no included appenders that can do that. You could easily write your own appender to do that or use DailyRollingFileAppender to roll every hour and then have 6 files for each "watch". On 3/16/07, Andrew Marlow <[EMAIL PROTECTED]> wrote: Hello guys, I am new to log4j so please bear wit

DailyRollingFileAppender help needed please

2007-03-16 Thread Andrew Marlow
Hello guys, I am new to log4j so please bear with me. I am writing a program in java that used to be written in C++. The C++ program used a home-grown logger. I am trying to use log4j to do the logging. The homegrown logger used to write 4 logfiles per day; the files were considered as watches of