annotate lib/logsetup.py @ 820:bc9ac10032f7

error handling Ignore-this: 24e90ae83f13fd44582bbf89c52c0771 darcs-hash:20111204025951-312f9-78d77730694c02ad0a8c5bd62c50984c7a9e2893.gz
author drewp <drewp@bigasterisk.com>
date Sat, 03 Dec 2011 18:59:51 -0800
parents 85e50a597244
children 163cfa384372
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
806
85e50a597244 entrancemusic improve logging
drewp <drewp@bigasterisk.com>
parents:
diff changeset
1 # todo: graylog, twisted web route to some channel
85e50a597244 entrancemusic improve logging
drewp <drewp@bigasterisk.com>
parents:
diff changeset
2
85e50a597244 entrancemusic improve logging
drewp <drewp@bigasterisk.com>
parents:
diff changeset
3 import logging
85e50a597244 entrancemusic improve logging
drewp <drewp@bigasterisk.com>
parents:
diff changeset
4 logging.basicConfig(format="%(created)f %(asctime)s %(name)s %(levelname)s %(message)s")
85e50a597244 entrancemusic improve logging
drewp <drewp@bigasterisk.com>
parents:
diff changeset
5 logging.getLogger('restkit.client').setLevel(logging.WARN)
85e50a597244 entrancemusic improve logging
drewp <drewp@bigasterisk.com>
parents:
diff changeset
6 log = logging.getLogger()
85e50a597244 entrancemusic improve logging
drewp <drewp@bigasterisk.com>
parents:
diff changeset
7 log.setLevel(logging.INFO)