Redirect the "puts" command output to a log file

Posted by Josh Moore on Stack Overflow See other posts from Stack Overflow or by Josh Moore
Published on 2008-10-22T04:46:52Z Indexed on 2010/03/19 20:41 UTC
Read the original article Hit count: 246

Filed under:
|

Hi, I am working on creating a daemon in Ruby using the daemons gem. I want to add output from the daemon into a log file. So I am wondering what is the easiest way to redirect puts from the console to a log file?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about daemons