Ruby's Logger class is really useful and handy - you should definitely use it instead of
One limitation is that you can't log to two destinations at once. Or can you?
log = Logger.new("| tee test.log") # note the pipe ( '|' ) log.info "hi" # will log to both STDOUT and test.log
Handy if you want to track progress of a script while it is running and have a permanent (well...) record of that progress for later inspection.