log_monitor

detect bad stuff in log files

npm install log_monitor
6 downloads in the last week
12 downloads in the last month

log_monitor

continuously tails file, executes a callback on needle detection

taky:log_monitor taky$ coffee app.coffee 
wednesday, october 23, 2013 04:11:56pm - logmon watching /var/log/system.log
module.exports =
  file: '/var/log/system.log'
  trig: 'asdf123'
  exec: 'sudo echo 1 > ' + __dirname + '/log/test.log'
  secs: 15
npm loves you