Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1145:0ba7a29a1886
wifi now uses PatchableGraph
Ignore-this: 83e5b650550b833836d8bfa8765321cc
darcs-hash:4af547d2287136c3176c684698503ee14f0a8340
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 03 Mar 2018 18:13:08 -0800 |
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)