annotate lib/logsetup.py @ 173:0daa8cbbd8f6

handle compact/full uris better, but still not always right Ignore-this: 10d98f16a659f899528eb86411473b18
author drewp@bigasterisk.com
date Fri, 17 Apr 2015 02:00:15 -0700
parents 26a6cf58743d
children 163cfa384372
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
26a6cf58743d entrancemusic improve logging
drewp@bigasterisk.com
parents:
diff changeset
1 # todo: graylog, twisted web route to some channel
26a6cf58743d entrancemusic improve logging
drewp@bigasterisk.com
parents:
diff changeset
2
26a6cf58743d entrancemusic improve logging
drewp@bigasterisk.com
parents:
diff changeset
3 import logging
26a6cf58743d entrancemusic improve logging
drewp@bigasterisk.com
parents:
diff changeset
4 logging.basicConfig(format="%(created)f %(asctime)s %(name)s %(levelname)s %(message)s")
26a6cf58743d entrancemusic improve logging
drewp@bigasterisk.com
parents:
diff changeset
5 logging.getLogger('restkit.client').setLevel(logging.WARN)
26a6cf58743d entrancemusic improve logging
drewp@bigasterisk.com
parents:
diff changeset
6 log = logging.getLogger()
26a6cf58743d entrancemusic improve logging
drewp@bigasterisk.com
parents:
diff changeset
7 log.setLevel(logging.INFO)