>
> Background - we've been using uwsgi since the 0.9.4 days.   We have a
> collection of apps running via uwsgi now.  I'm looking at upgrading to
> uwsgi-1.x and some of the new features which will make my life easier,
> like emperor mode.
>
> Assume I start emperor mode like this:
>
> /usr/local/bin/uwsgi --emperor /etc/uwsgi/vassals -d
> /var/log/uwsgi_emp.log
>
> For the configs I place into vassals, how do I make *each* of them log
> into a different logfile ?   Reasons:  for some of them: the volume is
> large -- but more specifically -- I need to look at the behavior of the
> apps individually.
>
> An example of one such config I'm testing with:
>
> <uwsgi>
>     <pythonpath>/webapps/bookimages/uwsgi</pythonpath>
>     <app mountpoint="/books">
>         <script>bookimages_wsgi</script>
>     </app>
>     <master/>
>     <processes>2</processes>
>     <socket>127.0.0.1:40002</socket>
>     <chdir>/webapps/bookimages</chdir>
> </uwsgi>
>


You can add <logto> option in each of the vassal config to point to a
different file.

The same applies to cgi mode, you can set it for each vassal independently

-- 
Roberto De Ioris
http://unbit.it
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to