annotate lib/logsetup.py @ 1309:b54164bcded3
rm old code to read a shaft encoder on an rpi, and a simple thermostat service that switches a house heater on
Ignore-this: b199393215c152f5daf5f0c781387d51
darcs-hash:3e25f2056470b710fb1cf5bfc34f585914469d56
author |
drewp <drewp@bigasterisk.com> |
date |
Sun, 21 Apr 2019 03:18:45 -0700 |
parents |
e379b1b4fe8b |
children |
|
rev |
line source |
806
|
1 # todo: graylog, twisted web route to some channel
|
|
2
|
|
3 import logging
|
|
4 logging.basicConfig(format="%(created)f %(asctime)s %(name)s %(levelname)s %(message)s")
|
|
5 logging.getLogger('restkit.client').setLevel(logging.WARN)
|
|
6 log = logging.getLogger()
|
|
7 log.setLevel(logging.INFO)
|
1022
|
8
|
|
9 def enableTwistedLog():
|
|
10 from twisted.python import log as twlog
|
|
11 import sys
|
|
12 twlog.startLogging(sys.stdout)
|
|
13
|
|
14
|
|
15
|