annotate lib/logsetup.py @ 894:3ad6b7bcdaff

shuttlepro: some old changes Ignore-this: 980a9ffa0b084bd46db880b4b3621a02 darcs-hash:20130802150605-312f9-c293c465516f42c8397aad7f48c228526cf46295
author drewp <drewp@bigasterisk.com>
date Fri, 02 Aug 2013 08:06:05 -0700
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)