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
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
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
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.
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
>
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.
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.
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
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