annotate lib/logsetup.py @ 400:1b303e7542a3
start the next python rewrite of rfid pm_532 reader. Nim didn'
Ignore-this: b6a98b3f0f1c4147bedcc5d2bcfec226
t go well with asynchttpserer adn hreaind
author |
drewp@bigasterisk.com |
date |
Wed, 27 Feb 2019 10:23:36 -0800 |
parents |
163cfa384372 |
children |
|
rev |
line source |
1
|
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)
|
217
|
8
|
|
9 def enableTwistedLog():
|
|
10 from twisted.python import log as twlog
|
|
11 import sys
|
|
12 twlog.startLogging(sys.stdout)
|
|
13
|
|
14
|
|
15
|