Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
Safe HaskellSafe-Inferred

LogView.Tail

Contents

Description

Functions to tail a log file, even if it gets rotated.

Synopsis

Documentation

tail

data Handle Source #

The Handle remembers the file and the last file size so it can detect when the logs have been rotated.

Instances

Instances details
Show Handle Source # 
Instance details

Defined in LogView.Tail

open Source #

Arguments

:: IO.FilePath 
-> Maybe Integer

No seek if Nothing, else seek n*200 bytes from end. TODO this should be the number of lines, but I'm too lazy to do that right.

-> IO.IO Handle 

magic