Mercurial > code > home > repos > homeauto
diff 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 |
line wrap: on
line diff
--- a/lib/logsetup.py Sun Jan 03 02:28:10 2016 -0800 +++ b/lib/logsetup.py Sun Jan 03 02:28:44 2016 -0800 @@ -5,3 +5,11 @@ logging.getLogger('restkit.client').setLevel(logging.WARN) log = logging.getLogger() log.setLevel(logging.INFO) + +def enableTwistedLog(): + from twisted.python import log as twlog + import sys + twlog.startLogging(sys.stdout) + + +