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 Alireza Salimi <al...@gmail.com> on 2010/04/21 18:47:56 UTC

Limiting the number of files TimeBasedRollingPolicy creates

Hi,

Is there anyway to configure TimeBasedRollingPolicy in a way that
it limits the number of log files it generates. i.e. to keep 7 log files (1
week)
for daily logs and delete previous daily logs.

thanks

-- 
Alireza Salimi
Java EE Developer