I would recommend Ruby's bundled class Logger for logging. Just see http://www.ruby-doc.org/core/classes/Logger.html It has also good examples. This will take care of your logging (for example, use "daily" as a parameter and so on).