Mercurial > code > home > repos > homeauto
comparison lib/logsetup.py @ 1022:e379b1b4fe8b
enableTwistedLog
Ignore-this: 75e28eaa4d1acc2db92144a0620eb9b8
darcs-hash:b3ee2f896f75ce1ba665772d32cbce4d4afc0bf1
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 03 Jan 2016 02:28:44 -0800 |
parents | 85e50a597244 |
children |
comparison
equal
deleted
inserted
replaced
1021:b8540cba5c66 | 1022:e379b1b4fe8b |
---|---|
3 import logging | 3 import logging |
4 logging.basicConfig(format="%(created)f %(asctime)s %(name)s %(levelname)s %(message)s") | 4 logging.basicConfig(format="%(created)f %(asctime)s %(name)s %(levelname)s %(message)s") |
5 logging.getLogger('restkit.client').setLevel(logging.WARN) | 5 logging.getLogger('restkit.client').setLevel(logging.WARN) |
6 log = logging.getLogger() | 6 log = logging.getLogger() |
7 log.setLevel(logging.INFO) | 7 log.setLevel(logging.INFO) |
8 | |
9 def enableTwistedLog(): | |
10 from twisted.python import log as twlog | |
11 import sys | |
12 twlog.startLogging(sys.stdout) | |
13 | |
14 | |
15 |