annotate lib/logsetup.py @ 997:b24885725f59

support for pwm board Ignore-this: 4bf59699c590c75c79e6ae72d719343a darcs-hash:20150830081929-312f9-45f7134e807c5de2bb0dad13a5a9d1fa032bf471
author drewp <drewp@bigasterisk.com>
date Sun, 30 Aug 2015 01:19:29 -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)