Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (def file-to-read "/tmp/fff")
- (def tailer-adapter (reify TailerListener
- (init [this tailer] ())
- (fileNotFound [this])
- (fileRotated [this])
- (^void handle [this ^Exception i] (println (str "exception: " i)))
- (^void handle [this ^String line] (println (str "line: " line)))))
- (def tailer (Tailer/create (File. file-to-read) tailer-adapter))
- (defn -main []
- (println "start")
- (.run tailer))
Advertisement
Add Comment
Please, Sign In to add comment