my code is given below .
public static void main(String[] args) {
// TODO code application logic here
File pcounter_log = new File(\"c:\\deve
One of the reasons for the duplicate messages is that if you are using the Tailer.create static method to create the Tailer, it automatically starts the process of monitoring the log.
We make the mistake of doing a tailer.run which starts another monitoring instance and prints the same entries twice.