~dooferlad/linaro-android-frontend/readme_update

Viewing all changes in revision 224.

  • Committer: Paul Sokolovsky
  • Date: 2011-04-29 14:29:47 UTC
  • mfrom: (223.1.3 frontend)
  • Revision ID: paul.sokolovsky@linaro.org-20110429142947-2fmktgo33po8t3me
Add logging set up, configuration, and use for some exceptions.

Django 1.3 has integrated support for configuring Python logging,
http://docs.djangoproject.com/en/1.3/topics/logging/ . For 1.2.3, just
call logging.basicConfig() directly. Set only logging level, and let it
use defaults otherwise, which is timespamp-less logging to stdout. On
production, that will go to Apache error.log, which has own timestamps.
Later, we can make more elaborated logging set up if needed.

Also, move some hardcoded names to settings.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: