How to rotate log file on time?
===

Now In the production.rb in environments I write code 

    config.logger = Logger.new("#{Rails.root.to_s}/log/production.log", 'daily')

So that do log file will rotate every day at midnight.

How do I write code for rotate log with `define time`?