title: Debug Levels Rails - The level ":debug" show all logs. I want ONLY ERRORS. Is it possible?
body: <p>I have an app in AWS Ec2 and I want to see the errors ( 500, 502, 50x, 403, 404 etc. ) ina  log file.</p>
  
  <p>The file <code>config / environments / production.rb</code></p>
  
  <p>Have the code:</p>
  
  <pre><code>config.log_level = :debug
  </code></pre>
  
  <p>I tried to change this to <code>:warn, :info, :error, :fatal</code>.
  Really this values shows ONLY ERRORS, but the information is very limited.</p>
  
  <p>The value <code>:debug</code> shows many datails, but... Shows all logs too...</p>
  
  <p>I am seeing the erros log here:</p>
  
  <pre><code>EC2 ROOT: cd /var/log/nginx
  CMD: tail -f error.log
  </code></pre>
  
  <p>There are another log folder, inside the app, here:</p>
  
  <pre><code>{appfolder}/current/log/production.log
  </code></pre>
  
  <p>But this file is empty. The logs are not being saved here.</p>
  
  <p>Some informations:</p>
  
  <pre><code>ruby -v: 2.2.2p95
  rails -v: 4.2.1
  OS: Ubuntu 14.04.2 LTS
  </code></pre>
  
  <p>Tks everyone.</p>