Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1239:0bc41be76de7
log reads in a more n3-like format for easier pasting
Ignore-this: 1a0027d4c65c5212398afc10121ea6c0
darcs-hash:c7ec51be0d3ba6c6f1047b3b9b5a7547e2a8d62b
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 13 Apr 2019 20:22:05 -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)