my code is given below .
public static void main(String[] args) { // TODO code application logic here File pcounter_log = new File(\"c:\\deve
Following code removed the issue with two invocations of the TailerListenerAdapter:handle function.
TailerListener listener = new TailerListener(topic); Tailer tailer = new Tailer(new File(path), listener, sleep, true); Thread thread = new Thread(tailer); thread.setDaemon(true); thread.start();