In running django’s runserver, the server requests show up on the cli, like so —
[18/Aug/2011 16:56:17] "GET /profile/ HTTP/1.1" 200 142406
[18/Aug/2011 16:56:19] "GET /talent/ HTTP/1.1" 200 229005
[18/Aug/2011 16:56:20] "GET /videos/ HTTP/1.1" 200 92793
If I have apache running, how would I get these same logs so I can see what’s going on in real time on the server? Thank you.
If you’ll be using cgi or fastcgi to run your django app within apache, those logs will appear automatically in apache’s logs (by default, access_log for accesses, and error_log for errors).
So just setup a script to watch for your application – for example, something like:
would work.