Thanks for that. What if the files reached the max
number of the configured value? Is there a way
I to delete the files so the hard disk won't
get full?
I am using windows system, and I need to keep the logs
for sometime for late use.
--- Curt Arnold <[EMAIL PROTECTED]> wrote:
> On a Unix-like platform, you can just write your log
> files to the /
> tmp directory which will be deleted on the next
> restart. You can use
> "${java.io.tmpdir}" in a configuration file to
> specify that in a
> platform-independent manner, but I do not believe
> that temporary
> directories get deleted automatically on Windows.
>
> Or you can use a RollingFileAppender which would
> allow you to specify
> a maximum file size that a log file should be able
> grow to before
> being closed and renamed and specify the maximum
> number of old log
> files that should be preserved.
>
>
> On Jun 20, 2005, at 5:30 PM, Qian Wang wrote:
>
> > how do i delete log files automatically?
> >
> > thank you all very much.
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]