Hey Graham, Thanks for the feedback.
What are your thoughts on a good logging solution beyond apache error log for daemon threads? I would like to emit events (json encoded one per line) such as when a given user logs in, starts a purchase, has an exception, or other stuff. I can get great analytics from this data using splunk but need a better mechanism for writing messages in a contention-free way. Before examining heavyweight tools more closely do you have any thoughts? On Jun 2, 2014 8:04 PM, "Graham Dumpleton" <[email protected]> wrote: > > On 03/06/2014, at 6:24 AM, Jason Garber <[email protected]> wrote: > > Hi Graham, > > I have the need to set an Apache Note from Python/mod_wsgi so that > application information can be reflected in the apache log file. > > In PHP, we have used http://www.php.net/manual/en/function.apache-note.php > > Is it possible to do this with the existing mod_wsgi implementation? If > it is not, what are your thoughts on the feasibility of that feature? > > > The problem with these sort of interactions is that they will only > generally work in embedded mode and so I have avoided doing any more in > depth interaction with Apache request object. > > That said, if using Apache 2.4.7 or later, the mod_headers module now has > the ability to set an note on the request object based on a response header. > > This could feasibly be used. > > The only problem with that idea though is: > > https://github.com/GrahamDumpleton/mod_wsgi/issues/5 > > For some reason the response headers out of daemon mode aren't visible to > mod_headers. > > If I can work out why that is and fix it, that would mean should then work > for daemon mode. > > So if you using Apache 2.4.7+, at least maybe try the idea with embedded > mode and see if it can work and let me know. > > Graham > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/modwsgi. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
