title: Apache commons io Tailer : Handle log rotation
body: <p>I am using Tailer to read lines from some log4j log file and write only certain lines into another destination file. </p>
  
  <p>Now I want to rotate the destination file everyday or at least want to delete some old data from the destination file. </p>
  
  <p>What is the best way to do this?</p>