title: Heroku app - log folder
body: <p>As <a href="https://devcenter.heroku.com/articles/read-only-filesystem" rel="nofollow noreferrer">Heroku has read-only file system</a> except two directories (log and tmp) I wanted to dump my logs from python app to one of them.</p>
  <p>The git repository pushed to heroku server app contains both of the folders created by my (checked twice, even downloaded app after push to check if both dirs are there).
  While running &quot;heroku run bash&quot; I am able to see only the &quot;tmp&quot; folder - &quot;log&quot; is not visible using &quot;ls -la&quot; or even to the app as I receive errors regarding missing location for the .log files.</p>
  <pre><code>2013-08-05T13:10:41.170434+00:00 heroku[web.1]: Starting process with command `python runserver.py`
  2013-08-05T13:10:43.132418+00:00 app[web.1]: Traceback (most recent call last):
  2013-08-05T13:10:43.609980+00:00 app[web.1]:   File &quot;runserver.py&quot;, line 2, in &lt;module&gt;
  2013-08-05T13:10:43.725134+00:00 app[web.1]:     from app_name import app
  2013-08-05T13:10:43.850738+00:00 app[web.1]:   File &quot;/app/app_name/__init__.py&quot;, line 13, in &lt;module&gt;
  2013-08-05T13:10:43.968714+00:00 app[web.1]:     from logger import flask_debug
  2013-08-05T13:10:44.081900+00:00 app[web.1]:   File &quot;/app/logger.py&quot;, line 8, in &lt;module&gt;
  2013-08-05T13:10:44.194540+00:00 app[web.1]:     logging.config.dictConfig(CONFIG)
  2013-08-05T13:10:44.306174+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python2.7/logging/config.py&quot;, line 797, in dictConfig
  2013-08-05T13:10:44.425589+00:00 app[web.1]:     dictConfigClass(config).configure()
  2013-08-05T13:10:44.535392+00:00 app[web.1]:   File &quot;/app/.heroku/python/lib/python2.7/logging/config.py&quot;, line 579, in configure
  2013-08-05T13:10:44.274067+00:00 heroku[web.1]: Process exited with status 1
  2013-08-05T13:10:44.287252+00:00 heroku[web.1]: State changed from starting to crashed
  </code></pre>
  <p>So quick thinking I wanted to check if I can place the logs in tmp folder. The app starts, everything looks fine... but nothing is dumped from the app.</p>
  <p>I am lost actually as I've looked for the solution quite a time.</p>
  <p>Maybe someone will tell me:</p>
  <ol>
  <li><p>Why &quot;log&quot; directory under /app_name folder is not visible?</p>
  </li>
  <li><p>Why &quot;tmp&quot; directory is not receiving logs?</p>
  <p><a href="http://speedy.sh/VaR2w/logger.conf" rel="nofollow noreferrer">http://speedy.sh/VaR2w/logger.conf</a> - here's the *.conf file for my loggers
  <a href="http://speedy.sh/c3QNs/logger.py" rel="nofollow noreferrer">http://speedy.sh/c3QNs/logger.py</a> - here are loggers</p>
  </li>
  </ol>
  <p>PS. Logs are working for the console for the &quot;tmp&quot; folder configuration.</p>