Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1155:3d478b05f9b1
add setToGraph
Ignore-this: f1e1b6f7604ac19f73cb7622b6aa80fc
darcs-hash:866a32aab2e7cffe8781886342602c90b3a87cf1
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 16 Apr 2018 22:18:49 -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)