Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 522:f159080c3cb4
release 0.4.0
Ignore-this: a408a3b0bc32f3ef4543fcf13f0a51e6
author | drewp@bigasterisk.com |
---|---|
date | Tue, 23 Apr 2019 00:57:18 -0700 |
parents | 163cfa384372 |
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)