Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 480:53ceedcc2809
dhcpleases partial rewrite
Ignore-this: 6a2b95612f0e3a2348397f2f068e5f58
author | drewp@bigasterisk.com |
---|---|
date | Sat, 20 Apr 2019 23:59:04 -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)