annotate lib/logsetup.py @ 1081:0fa2e07691f7
quoting
Ignore-this: 6117b9f992a8361ba663590b13c9c69b
darcs-hash:9d7633b7cf25a65a7040b8f6fc918d731ce7f85c
author |
drewp <drewp@bigasterisk.com> |
date |
Fri, 06 May 2016 17:29:32 -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
|