Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1114:e69599f47cf0
wifi write to influxdb
Ignore-this: 3d5b0194b9db14e7e261a0852d24e42
darcs-hash:b0774c8cb9b49e99cab8f551a0c6e830d968432f
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Fri, 16 Sep 2016 01:26:54 -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)