Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1306:2ffffcc7d0a4
some unadded files, for the record
Ignore-this: d86a03897a19d3cad8ddb8a6fca13c93
darcs-hash:3ff74ca8d153c84b8f24dd6182ca15dc8a0e86fd
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sun, 21 Apr 2019 03:08:43 -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)