mozilla/kuma — pull request #637 by groovecoder (2012-10-03 16:35:34+00:00)
Title: fix bug 750240 - log errors to arecibo

This is a big scary pull request, but it's okay - we'll get thru this together. Just stay alive - I will find you!

Most of the little changes here are:
1. consolidating kitsune/kuma commonware & logging dependencies onto straight-up python logging
2. consolidating the configured loggers into a smaller(?) set of 6 loggers all under the new 'mdn' namespace

The changes to `log_settings.py` and `settings.py` are what enables arecibo error logging as described in the [arecibo django client docs](http://arecibo.readthedocs.org/en/latest/client/django.html).

But to test everything locally you need to switch to the branch and:

1. fetch my kuma-lib repos for the vendor submodule updates
* `cd vendor`
* `git remote add groovecoder git://github.com/groovecoder/kuma-lib.git`
* `get fetch groovecoder`
* `cd ..`
* `git submodule update --init --recursive`
2. connect to Mozilla-MPT and check that you can reach http://amckay-arecibo.khan.mozilla.org/list/
3. In `settings_local.py`
* comment out the `INTERNAL_IPS` line so django_arecibo will POST stacktraces
* add `ARECIBO_SERVER_URL = 'http://amckay-arecibo.khan.mozilla.org/'`
4. Cause a 500 or 404 error (e.g., running tests causes some. I also spot-checked by copy-pasting the HTML5 page from production into my local and hit https://developer-local.allizom.org/en-US/docs/HTML/HTML5 to get OSError: [Errno 2] No such file or directory ... HTML5_Logo_128.png)
5. You should see errors show up on http://amckay-arecibo.khan.mozilla.org/list/
6. #mfbt