Does TimeBasedRollingPolicy work with MaxBackupIndex?

2008-10-10 Thread Jathy
I used TimeBasedRollingPolicy of RollingFileAppender to rollover log file every minute. And at the same time I'd like to use MaxBackupIndex to set the max number of backup files. But MaxBackupIndex does not work. TimeBasedRollingPolicy cannot work with MaxBackupIndex or my configuration file has s

Re: TimeBasedRollingPolicy does not work in RollingFileAppender

2008-10-10 Thread Jathy
Jathy wrote: > > I used TimeBasedRollingPolicy to rollover log file every day but it did > not work. No files was generated. My configuration file is shown below, > > > debug="true"> >class="org.apache.log4j.rolling.Rol

TimeBasedRollingPolicy does not work in RollingFileAppender

2008-10-10 Thread Jathy
I used TimeBasedRollingPolicy to rollover log file every day but it did not work. No files was generated. My configuration file is shown below, And in the code, I used the following codes to i

Re: Does log4cxx support MS Vista

2008-09-26 Thread Jathy
No one has this information? Jathy wrote: > > Hi All, > > Does log4cxx can run properly on Vista? > -- View this message in context: http://www.nabble.com/Does-log4cxx-support-MS-Vista-tp19566294p19685406.html Sent from the Log4cxx - Users mailing list archive at Nabble.com.

RE: How to config log4cxx to delete the log files periodically

2008-09-26 Thread Jathy
n > arbitrary decision. There is no good way to accomplish what you want. How > is log4cxx supposed to know what files it can delete? Log4cxx maintains no > history of what files it has created in the past. > > I suggest you create a daily job that deletes log files that are more >

Does log4cxx support MS Vista

2008-09-18 Thread Jathy
Hi All, Does log4cxx can run properly on Vista? -- View this message in context: http://www.nabble.com/Does-log4cxx-support-MS-Vista-tp19566294p19566294.html Sent from the Log4cxx - Users mailing list archive at Nabble.com.

RE: How to config log4cxx to delete the log files periodically

2008-09-17 Thread Jathy
y a max > number of files when using the size based rolling policy. This is not an > arbitrary decision. There is no good way to accomplish what you want. How > is log4cxx supposed to know what files it can delete? Log4cxx maintains no > history of what files it has created in the past.

Re: How to config log4cxx to delete the log files periodically

2008-09-11 Thread Jathy
Anybody has any idea about the below question? Waiting online... Jathy wrote: > > Hi All, > > In my project, I need produce one log file per day and delete the log > files periodically so that at most 31 files are stored. I used > DailyRollingFileAppender, it helped me to r

How to config log4cxx to delete the log files periodically

2008-09-11 Thread Jathy
Hi All, In my project, I need produce one log file per day and delete the log files periodically so that at most 31 files are stored. I used DailyRollingFileAppender, it helped me to reach my first goal easily. But how to config it to delete the log files automatically? Thanks. Regard, Jathy