#events #inotify #logger

app inotify-logger

Log inotify events in a friendly way

1 unstable release

0.1.0 Oct 29, 2024

#150 in Debugging

Download history 130/week @ 2024-10-28 8/week @ 2024-11-04

138 downloads per month

MPL-2.0 license

13KB
248 lines

inotify-logger

Log inotify events in a friendly way

Features

  • Recursively watches existing and newly added files and directories in the current directory.
  • Groups MOVED_FROM and MOVED_TOevents into a single MOVE event when possible.
  • Prints only a (currently hard-coded) subset of inotify events, for ease of reading.
  • Prints an inactivity ruler after one second with no new events, visually grouping events.

Screenshot of inotify-logger in a terminal

Installation and Usage

After obtaining a working Rust toolchain, inotify-logger can be installed from source through crates.io:

cargo install --locked inotify-logger

It can then be started in the directory to watch for events:

inotify-logger

Configuration

inotify-logger does not currently feature any configuration. It may later support configuring parts of its behavior through command-line arguments.

Compatibility

The console output is not intended for machine consumption and no compatibility guarantees are provided.

License

Copyright 2024 AudaciousAxiom

This project is licensed under MPL-2.0.

Dependencies

~3–11MB
~118K SLoC