#chase #logs #tail #log-tailing #file-watch

bin+lib chase

Async + sync file-following for people who care about file rotatons and line numbers

9 releases

Uses old Rust 2015

0.1.8 Feb 21, 2018
0.1.7 Feb 20, 2018

#8 in #tail

Download history 7/week @ 2022-11-15 7/week @ 2022-11-22 3/week @ 2022-11-29 6/week @ 2022-12-06 4/week @ 2022-12-13 6/week @ 2022-12-20 11/week @ 2022-12-27 2/week @ 2023-01-03 3/week @ 2023-01-10 1/week @ 2023-01-17 11/week @ 2023-01-24 12/week @ 2023-01-31 20/week @ 2023-02-07 31/week @ 2023-02-14 12/week @ 2023-02-21 3/week @ 2023-02-28

67 downloads per month

MIT license

588 lines

Chase Build Status Crates.io Chase

An implementation of async and sync file-following in Rust for people who care about line numbers.


  • Provide line numbers with each line yielded
  • Ability to exit the watch loop programmatically
  • Deals with file rotations automatically
  • Cross-platform async
  • Configurable (which line to start on, delays and retries)
  • Easy to use synchronously
  • Easy to use asynchronously


You can use this tool as a lib and as a binary:

As lib

Some features (e.g. receiving as a Stream, and Serde derive for lib-provided structs) are feature-gated, so keep that in mind when adding as a dependency (refer to Cargo.toml for list of features)

As a binary

cargo install chase --features=binary

Chases a file through thick and thin.

    chase [OPTIONS] <f>

    -h, --help       Prints help information
    -V, --version    Prints version information

    -L, --line <l>    The line you want to start chasing your file from [default: 0]

    <f>    The file you want to chase


Windows not yet supported: need to figure out what inodes map to


Very much inspired by logwatcher