Skip to content

cattail v0.1.0

Latest

Choose a tag to compare

@gracee3 gracee3 released this 21 Mar 02:21

cattail v0.1.0

Initial public release of cattail, a small multi-file tail utility for log-style files.

Published on crates.io: https://crates.io/crates/cattail

Features

  • startup glob expansion
  • deduped file resolution
  • initial backlog display with -n, --lines
  • --since-now to skip backlog and follow from the current end
  • concurrent per-file follow workers
  • per-line source prefixes
  • truncation and delete/recreate handling
  • notify-backed watching with polling fallback
  • dynamic discovery of newly created files matching startup globs
  • serialized stdout output

Release Artifacts

  • crates.io package: cattail
  • README and operator docs included in the repository
  • generated man page and shell completions available in the repo under packaging/

Notes

  • Newly discovered matching files begin reading from the beginning of their current contents.
  • Polling remains part of the recovery path, so latency is bounded by --interval-ms when notify is silent or ambiguous.
  • Exact ordering between different files is best effort; per-file ordering is preserved.

Install

cargo install cattail

### Usage

cattail /var/log/syslog /var/log/auth.log
cattail -n 100 '/var/log/*.log'
cattail --since-now --prefix relative '/var/log/*.log'