Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1234:c02ac623e593
animated rgb puts more data back into graph
Ignore-this: d3ba1aa218aa1782aa715d5cd013bb9
darcs-hash:c4b0603e41006cb77224ee3adc7e79d1e3a6a6d6
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 07 Apr 2019 03:58:05 -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)