title: How do I enable logging for a Padrino app on Heroku?
body: <p>Help me out here; I must be missing something really obvious.</p>
  
  <p>I have a Padrino app running on Heroku. In boot.rb, in the block passed to <code>Padrino.before_load</code>, I have the following lines:</p>
  
  <pre><code>Padrino::Logger::Config[:production][:log_level] = :info
  Padrino::Logger::Config[:production][:stream] = :stdout
  </code></pre>
  
  <p>And in the <code>before</code> block in app.rb, I have calls to <code>logger.info</code> scattered throughout.</p>
  
  <p>This logs to standard out just fine on my development machine. But when I check my Heroku logs:</p>
  
  <pre><code>heroku logs -t -s app
  </code></pre>
  
  <p>...I don't see anything (just the initial 3 lines of startup info from the Thin server).</p>
  
  <p>What am I missing?</p>
  
  <hr>
  
  <p>Some points of clarification in response to <a href="https://stackoverflow.com/a/12187699/105570">culix</a>:</p>
  
  <ol>
  <li>Switching to <code>heroku logs -s app</code> after the app starts does not change anything for me.</li>
  <li>I tried installing <a href="https://papertrailapp.com/" rel="nofollow noreferrer">Papertrail</a>. Which actually looks quite nice! But it still doesn't have the log messages I'm looking for.</li>
  <li>That is a good question! I really <em>did</em> just have calls to <code>logger.info</code> in the <code>before</code> block. I will add more logging and check back, after I finish updating this question.</li>
  <li>Now that you ask: my app doesn't seem to be logging anything either when I switch to running in "production" (after changing database.rb to just point to the development DB). <strong>I think this means I'm just fundamentally configuring Padrino logging incorrectly.</strong> Thanks for asking this question!</li>
  <li>Latest boot.rb is committed.</li>
  <li>Nope—not (intentionally) messing with stdout in any way.</li>
  </ol>
  
  <p>Obviously the first thing I should spend time investigating is #4 above; that's what I will do now. Then, in case it yields nothing, on to #3.</p>