title: How to create log file history in selenium webdriver using java
body: <p>Currently working on selenium webdriver. I have created a log file and the log information stored in logfile.log. when i start running my test case the log information is captured but the entire history is visible. i want to clear the log file or it need to be cleared before starting the execution of test cases.</p>
  
  <p>Sample log info:</p>
  
  <pre><code>2013-10-01 09:18:06,655 INFO  [TEST] Initializing Selenium... 
  2013-10-01 09:18:06,686 INFO  [TEST] Selenium instance started 
  2013-10-01 09:18:11,905 INFO  [TEST] ______________________________________________________________ 
  2013-10-01 09:18:11,905 INFO  [TEST] Initializing Selenium... 
  2013-10-01 09:18:11,921 INFO  [TEST] Selenium instance started 
  2013-10-01 09:18:11,921 INFO  [TEST] Accessing Stored uid,pwd from the stored text file 
  2013-10-01 09:18:11,921 INFO  [TEST] Retrieved uid pwd from the text file 
  2013-10-01 09:18:12,858 INFO  [TEST] Sign in to the OneReports website 
  2013-10-01 09:18:12,874 INFO  [TEST] Enter Username 
  2013-10-01 09:18:13,077 INFO  [TEST] Enter Password 
  2013-10-01 09:18:14,155 INFO  [TEST] Submitting login details 
  2013-10-01 09:18:33,139 INFO  [TEST] Stopping Selenium... 
  2013-10-01 09:18:33,139 INFO  [TEST]  ______________________________________________________________ 
  </code></pre>