Java IO implementation of unix/linux “tail -f”

前端 未结 9 1861
我寻月下人不归
我寻月下人不归 2020-11-22 12:06

I\'m wondering what techniques and/or library to use to implement the functionality of the linux command \"tail -f \". I\'m essentially looking for a drop in add-on/replace

9条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 12:44

    Take a look at Apache Commons implementation of Tailer class. It does seem to handle log rotation as well.

提交回复
热议问题