title: How to print logs on AWS for Rails application
body: <p>I have an application deployed on AWS with Nginx. I want to access logs, I tried <code>/etc/nginx/logs</code> but it always shows old logs. I also changed <code>config.log_level = :info</code> to <code>config.log_level = :debug</code> but it did not work. Is there any way to write logs on my custom file rather than access.log?</p>
  
  <pre><code>Production.rb
  config.log_level = :info
  RAILS_DEFAULT_LOGGER = Logger.new('log/staging.log')
  </code></pre>