annotate lib/logsetup.py @ 1070:1630e50d9842
sourceSubstr feature, untested
Ignore-this: a7e5e11bef7fceffc2d2687ce9edcf6e
darcs-hash:7d673210347008767dd40c7b48be32cf03e84372
author |
drewp <drewp@bigasterisk.com> |
date |
Thu, 14 Apr 2016 00:11:12 -0700 |
parents |
e379b1b4fe8b |
children |
|
rev |
line source |
806
|
1 # todo: graylog, twisted web route to some channel
|
|
2
|
|
3 import logging
|
|
4 logging.basicConfig(format="%(created)f %(asctime)s %(name)s %(levelname)s %(message)s")
|
|
5 logging.getLogger('restkit.client').setLevel(logging.WARN)
|
|
6 log = logging.getLogger()
|
|
7 log.setLevel(logging.INFO)
|
1022
|
8
|
|
9 def enableTwistedLog():
|
|
10 from twisted.python import log as twlog
|
|
11 import sys
|
|
12 twlog.startLogging(sys.stdout)
|
|
13
|
|
14
|
|
15
|