Apache JDO Project - Logging - cleaning up older log folders

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > September 2005 > Logging - cleaning up older log folders





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Logging - cleaning up older log folders
karan malhi

2005-09-05, 5:45 pm

Hi Michael,

Regarding logging, each time i run the test, it creates a folder
(timestamped) under test/target. Is there a limit to these folders? Does
maven have a goal for cleaning up the existing folders. For example, can
i do something like telling maven that i just want the last 10 log
files, any older ones should be cleaned up. I think that the
RollingFileAppender in Log4j is an option where it would create backups
of existing log files, but i can still tell log4j to maintain x number
of backups.

--
Karan Singh


Michael Bouschen

2005-09-05, 5:45 pm

Hi Karan,

as far as I know there is no such limit, other than available space on
your disk :-). Calling 'maven clean' removes the entire target
directory, so all the log directories will be gone. Please note, it also
removes all the class files and the installed schema.

Regards Michael

> Hi Michael,
>
> Regarding logging, each time i run the test, it creates a folder
> (timestamped) under test/target. Is there a limit to these folders? Does
> maven have a goal for cleaning up the existing folders. For example, can
> i do something like telling maven that i just want the last 10 log
> files, any older ones should be cleaned up. I think that the
> RollingFileAppender in Log4j is an option where it would create backups
> of existing log files, but i can still tell log4j to maintain x number
> of backups.
>



--
Michael Bouschen Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de http://www.tech.spree.de/
Tel.:++49/30/235 520-33 Buelowstr. 66
Fax.:++49/30/2175 2012 D-10783 Berlin

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com