I need to log all requests coming into the server. Typical things you would get from Apache log formatting or IIS.
I am using a WSGI standards based server, Apache mod_wsgi, gunicorn, Tornado. It doesn't matter.
Which is an efficient logging method for a production application? My application is in Flask, and I have Python logging set up. Works fine. But I am afraid it will slow my application to a crawl, and it is very difficult to get things like bytes send and received and the rest of granular type logging a server provides. It shouldn't matter the language or application. I think this is applicable to anything a web server can respond to.
Am I correct that I shouldn't fight with a Python framework and let the server do the work?
With something like IIS you have ODBC logging. You don't seem to have that anywhere else.