view lib/logsetup.py @ 412:91162a54553c

copy rest of rfid service from the first try. fix some crashes in tags.py Ignore-this: a3fdcc0a8494e358d3c0abc109e8ed4d
author drewp@bigasterisk.com
date Sat, 23 Mar 2019 04:26:03 -0700
parents 163cfa384372
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)