Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1193:08a6eb5edf3d
tinyscreen can flip images and render news
Ignore-this: 72c89530e71d4c6f2550bb4deeccd807
darcs-hash:1e6cd5b4615297bd91d63e92951e90594ab98f25
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 02 Jan 2019 18:40:16 -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)