Mercurial > code > home > repos > homeauto
view lib/logsetup.py @ 1189:c1cf544711da
start tiny_screen
Ignore-this: 3fb7ee4bea3f9f660fd275de2964afc4
darcs-hash:af475a8625caaad03e64f15ccf9d13ccd76b1323
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Tue, 01 Jan 2019 10:15:25 -0800 |
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)