public void startLogCleaningProcess(File accessLogDirectory){
  logger.info("Cleaning up tomcat access log files under : {}",accessLogDirectory.getAbsolutePath());
  Timer timer=new Timer(IS_DAEMON);
  AccessLogCleanerTask tomcatAccessLogCleaner=new AccessLogCleanerTask(accessLogDirectory);
  logger.info("Starting to schedule the log clean up tasks..");
  timer.scheduleAtFixedRate(tomcatAccessLogCleaner,0,TIMER_TASK_DELAY_IN_MILLIS);
}

public void startLogCleaningProcess ( File accessLogDirectory ) { logger . info ( "Cleaning up tomcat access log files under : {}" , accessLogDirectory . getAbsolutePath ( ) ) ; Timer timer = new Timer ( IS_DAEMON ) ; AccessLogCleanerTask tomcatAccessLogCleaner = new AccessLogCleanerTask ( accessLogDirectory ) ; logger . info ( "Starting to schedule the log clean up tasks.." ) ; timer . scheduleAtFixedRate ( tomcatAccessLogCleaner , 0 , TIMER_TASK_DELAY_IN_MILLIS ) ; }
perform clean up of the tomcat access log files
