I have a WSGI server which is served by an Apache proxy. I would like to have a log file dedicated to that server, so I added the following to the VirtualHost
declaration:
LogFormat "%h %l %u %t \"%r\" %>s %b" wsgi_server
CustomLog ${APACHE_LOG_DIR}/wsgi_server.log wsgi_server
LogLevel crit
After Apache restarts, I still see some low-level (info? debug?) Log messages in wsgi_server.log
:
127.0.0.1 - - [24/Feb/2014:12:16:07 +0000] "GET /image/2014.02.24.10.33.41.540801-4.jpg HTTP/1.1" 200 33895
127.0.0.1 - - [24/Feb/2014:12:16:07 +0000] "GET /image/2014.02.24.10.35.47.666532-3.jpg HTTP/1.1" 200 6665
127.0.0.1 - - [24/Feb/2014:12:16:07 +0000] "GET /image/2014.02.24.10.18.20.501241-9999.jpeg HTTP/1.1" 200 93619
127.0.0.1 - - [24/Feb/2014:12:16:07 +0000] "GET /image/2014.02.24.10.17.54.087584-9999.jpg HTTP/1.1" 200 28088
...
How do I exclude all Log message below crit
from my WSGI custom log, and keep only the printouts from the Python WSGI module?