Webserver logs are usually retrieved from compressed or uncompressed log files on disk.
Loglab provides these classes for accessing log files on disk as iterables.
Wrapper around the above for outputting a filtered, sorted logfile
Wrapper to construct a LogBuffer from a gzipped file.
Loglab also includes a source that can retrieve log lines from the end of a file.
Tails a logfile, yielding lines in real time.
If from_start is True, the source will start emitting lines from the beginning of the file. Otherwise, it will emit the first full line added after the current end of the file.
Iterate over lines added to the file since it was opened.
Blocks until new lines are available to read, so must be wrapped as a thread if non-blocking behaviour is required.
This method takes care not to output a partial line by only outputting lines that are terminated by a newline. It also skips the first line as it does not know whether this is the start of a line.