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. I am wondering what is the easiest way to redirect p
p
Or you can redefine the puts command? Works probably only in a single file/class
puts
def puts(message) #write message to file end