Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
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