You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Qian Wang <ja...@yahoo.com> on 2005/06/21 00:30:17 UTC
how do i delete log files
how do i delete log files automatically?
thank you all very much.
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: how do i delete log files
Posted by Qian Wang <ja...@yahoo.com>.
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 <ca...@apache.org> 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:
> log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail:
> log4j-user-help@logging.apache.org
>
>
____________________________________________________
Yahoo! Sports
Rekindle the Rivalries. Sign up for Fantasy Football
http://football.fantasysports.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: how do i delete log files
Posted by Curt Arnold <ca...@apache.org>.
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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org