Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1317:43791ec0beb2
make patchablegraph release
Ignore-this: f55c9a56b052797ff23a80630714b51a
darcs-hash:13fba9e748f3fdff6c0708b0e051624bf42f8cba
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Mon, 22 Apr 2019 23:29:19 -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)