UPDATE: Ok, I didn\'t formulate a good Q to be answered. I still struggle with heroku being on -07:00 UTC and I at +02:00 UTC.
Q: How do I get the log writte
I found that the above solutions did not work on Heroku. I put this in my config/environments/production.rb Make sure you put it before your logger is initialized
Rails::Rack::Logger.class_eval do
# Override logging to spit out time in different zone to easier find user reported
errors
# https://github.com/rails/rails/blob/v3.2.14/railties/lib/rails/rack/logger.rb#L38
def started_request_message(request)
'Started %s "%s" for %s at %s' % [
request.request_method,
request.filtered_path,
request.ip,
Time.now.in_time_zone('Melbourne') ]
end
end