Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1291:c1b0813372cc
move to /my/proj/hardware/busyboxArduino. hardware is still around and this has notes on how to use it.
Ignore-this: 7743f57abef17980c595b1686abf646a
darcs-hash:75f747175229c26222b107b64458d0c01845e17d
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 21 Apr 2019 01:26:58 -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)