Log tailing and parsing framework in Java