annotate lib/logsetup.py @ 814:84f336f69004

js libs for bluetooth viewer Ignore-this: 6c6f84d2ee1e241dd19d191bd78d7064 darcs-hash:20110816072241-312f9-03124009e37ea00a316207367a625f56cb2925b3.gz
author drewp <drewp@bigasterisk.com>
date Tue, 16 Aug 2011 00:22:41 -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)