watch / read a growing log file with ruby

Posted by KingInk on Stack Overflow See other posts from Stack Overflow or by KingInk
Published on 2009-08-18T13:04:45Z Indexed on 2010/06/05 21:42 UTC
Read the original article Hit count: 137

Filed under:
|
|

I have a log file that is constantly growing, how can I watch and parse it via a ruby script. The script will parse each new line as it is written to the file and output something to the screen when the new line contains the string 'ERROR'

© Stack Overflow or respective owner

Related posts about ruby

Related posts about logging