Hi Phil, On 8/7/09 10:31 , Kershaw, PJ (Philip) wrote: > Hi Wichert, > I've been making use of your modwsgi buildout recipe for sometime now - > thanks :) ... but have been wondering about the best way to integrate > logging capability into the WSGI script that's generated. Looking at: > http://groups.google.com/group/pylons-discuss/browse_thread/thread/9b9add4529b3779c?pli=1 > I can do something like this to enable the logging configuration to be > picked up from my ini file: > > from paste.deploy import loadapp > from paste.script.util.logging_config import fileConfig > configFilePath = "/usr/local/myapp/etc/myapp.ini" > fileConfig(configFilePath) > application = loadapp("config:"+configFilePath) > In your buildout recipe code I could override the default > WRAPPER_TEMPLATE or is there a way I could do it via an option in my > buildout config?
I could not see a reason not to do this by default, so I changed the template wrapper in collective.recipe.modwsgi and released a new version 1.2 with this change. Thanks for the feedback! Wichert. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---