title: heroku deploy with Log4J
body: <p>Is it possible to deploy a Java based application to Heroku with Log4J enabled? According to their <a href="https://devcenter.heroku.com/articles/logging#writing-to-your-log" rel="nofollow">docs</a>:</p>
  
  <blockquote>
    <p>Anything written to standard out (stdout) or standard error (stderr)
    is captured into your logs. This means that you can log from anywhere
    in your application code with a simple output statement.</p>
    
    <p>In Ruby, you could use something like:</p>
  
  <pre><code>puts "Hello, logs!"
  </code></pre>
    
    <p>In Java:</p>
  
  <pre><code>System.err.println("Hello, logs!"); 
  System.out.println("Hello, logs!");
  </code></pre>
  </blockquote>