How to force application's stdout logs through uwsgi?
<p>I have Django application running behind <code>uwsgi</code> inside Docker container. <code>uwsgi</code> is started via <code>ENTRYPOINT</code> and <code>CMD</code> parameters in Dockerfile. I succesfully connect it to separated Nginx container and check expected results in browser.</p>

<p>So far, so good.</p>

<p>Now I would like see application logs in Django container. But I am not able to find right combination of Django's settings <code>LOGGING</code> variable and <code>uwsgi</code> switches. I just see <code>uwsgi</code> standard logs which is useless for me.</p>

<p>Is it possible at all? It seems to me, that I must make some wrapper BASH script, like:</p>

<pre><code>uwsgi --socket 0.0.0.0:80 --die-on-term --module myapp.wsgi:application --chdir /src --daemonize /dev/null
tail -f /common.log```
</code></pre>

<p>... set <code>LOGGING</code> inside Django to write into <code>/common.log</code> and tail it to output.</p>

<p>Is there some more elegant solution?</p>

<p><strong>Updated 2016-02-24:</strong></p>

<p>Yes, it is possible. I made mistake somewhere in my first tests. I published working example on <a href="https://github.com/msgre/uwsgi_logging" rel="noreferrer">https://github.com/msgre/uwsgi_logging</a>.</p>