view lib/logsetup.py @ 322:f420207c7fb4

switch neopixel libs. lost the r/g/b remapping feature Ignore-this: d18b5118d63f42db7ee6e6defefa90f2
author drewp@bigasterisk.com
date Fri, 20 Oct 2017 02:19:53 -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)