Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Monitoring log file per hour basic

 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need to read log file every hour to find an ERROR/Server logs, in my next hour I need to read new logs, which have appended to the file.

I am using BefferedReader, Is this useful for this scenario?

How Do I remember till which line I completed reading, from which line I need to start reading in my new hour ?

Can some one please give me some light on this?


Thanks in advance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic