@arc2898/filetail
v1.0.1
Published
Modern tail -f with live grep, color-coded log levels, pattern matching, and alerting.
Readme
FileTail
Modern
tail -fwith live grep, color-coded log levels, and alerting.
Install
npm install -g @arc2898/filetailCommands
filetail tail <file>
Follow a log file with live filtering.
filetail tail /var/log/app.log
filetail tail /var/log/app.log --grep "ERROR"
filetail tail /var/log/app.log --levels ERROR,WARN,INFO
filetail tail /var/log/app.log --jsonfiletail alert <file>
Watch file and trigger shell command on pattern match.
filetail alert /var/log/app.log --match "ERROR" --command "echo 'Error found!'"
filetail alert /var/log/app.log --match "FATAL" --command "say 'Fatal error'" --onceFeatures
- Color-coded log levels: ERROR (red), WARN (yellow), INFO (cyan), DEBUG (gray)
- Live grep filtering:
--grepto include,--ignoreto exclude - JSON log parsing:
--jsonto parse structured logs - Alert mode: run any shell command when pattern matches
- Works on Windows and Unix
License
MIT
