in java TailListener,how to avoid duplicate log messages

前端 未结 3 406
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 19:37

my code is given below .

public static void main(String[] args) {
        // TODO code application logic here
        File pcounter_log = new File(\"c:\\deve         


        
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-19 20:16

    Looking at the code of Tailer, I can't see how that can happen. Are you sure that you aren't running multiple copies of the tailer, and that the messages aren't actually duplicated in the log file.

提交回复
热议问题