On Jan 25, 2012 9:31 AM, "Damjan" <[email protected]> wrote:
>
> >> /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.
>
> I was just thinking about the same thing, and I was hoping to just set
> the
> UWSGI_VASSAL_LOGTO = %d/run/uwsgi.log
> environment variable in the emperor. Unfortunately  this didn't work,
> the %d was not expanded in the vassals.

I just saw/realized this while looking thru code the other day ...

Does $(env_var) work?

Also looks like @(file) will do something cool, include probably.

You could possibly use an env var to fill a placeholder in a common config
file ... not sure offhand how to include from XML though.

--

C Anthony [mobile]
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to