title: reading log file in java
body: <p>Is it possible to read log files (abc.log) using java?</p>
  
  <p>I want a specific string from my log file. </p>
  
  <p>suppose this is the content of my logfile. I want the time stamp only (eg: 05:08:37) and print it the console.</p>
  
  <pre><code>2012-12-16 05:08:37,905 [Thread-1] INFO  com.submit.SubmitService - Wait time 500
  
  2012-12-16 05:08:38,444 [Thread-1] INFO  com.submit.SubmitService - NO OF  RECORDS TILL NOW 3755    TOTAL TIME -- &lt;&lt; 539
  
  2012-12-16 05:08:38,668 [Thread-1] INFO  com.submit.SubmitService - Active Connection:: -69076
  
  2012-12-16 05:08:38,670 [Thread-1] INFO  com.submit.SubmitService - Active Connection:: -65764
  </code></pre>