Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1075:32bbce76134e
update piNode host configs
Ignore-this: 8287428b4140dedbed03633d3fd2790e
darcs-hash:af94e45d5f667f81471c2169cff2a11c9a0dcf56
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Thu, 14 Apr 2016 00:16:27 -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)