Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 442:ee74dc3b58fb
collector build improvements; stats and logging
Ignore-this: 22fbbb2cde6a6bdbd9d0017f1f157a41
author | drewp@bigasterisk.com |
---|---|
date | Thu, 18 Apr 2019 09:15:39 -0700 |
parents | 163cfa384372 |
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)