Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
 
What's wrong? Where are you going? Stop! Read this tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!