Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1237:c8ac652d37b7
switch to uart
Ignore-this: b5285d12100bc182b970ea392f48e259
darcs-hash:c8280607c51cb0da02361600f2fa3d62be66b83b
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Tue, 09 Apr 2019 09:05:42 -0700 |
parents | e379b1b4fe8b |
children |
line wrap: on
line source
# todo: graylog, twisted web route to some channel import logging logging.basicConfig(format="%(created)f %(asctime)s %(name)s %(levelname)s %(message)s") 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)