django - Writing to the Apache error.log file from Mod_Wsgi -
i having issues setting wsgi file wanted output messages log file. found page http://code.google.com/p/modwsgi/wiki/debuggingtechniques, when try use code:
print >> sys.stderr, "application debug #3"
in project.wsgi file, message not pushed error.log on apache restart. site being served correctly. need make logging work?
p.s. on ubuntu 10.10 serving django site.
the wsgi script file loaded when first request arrives specific application , not automatically when processes start, ie., not when apache restarted. can force loaded on process start if mod_wsgi configured appropriately, isn't default. nothing in wsgi script file executed on process shutdown. have happen need register atexit callback. see 'code.google.com/p/modwsgi/wiki/…;. – graham dumpleton
graham dumpleton genius!
Comments
Post a Comment