annotate lib/logsetup.py @ 217:163cfa384372
enableTwistedLog
Ignore-this: 75e28eaa4d1acc2db92144a0620eb9b8
author |
drewp@bigasterisk.com |
date |
Sun, 03 Jan 2016 02:28:44 -0800 |
parents |
26a6cf58743d |
children |
|
rev |
line source |
1
|
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)
|
217
|
8
|
|
9 def enableTwistedLog():
|
|
10 from twisted.python import log as twlog
|
|
11 import sys
|
|
12 twlog.startLogging(sys.stdout)
|
|
13
|
|
14
|
|
15
|