title: create log file on a daily basis for my spring project using log4j.
body: <p>I want to create error log file on daily basis for my spring project .I thought, i can get system date and check weather it is same day or diff day , but what will i do , if there is a wrong system date occurred by low CMOS battery.</p>
  
  <p>Is there any other solution? </p>