view lib/logsetup.py @ 1160:6a127bf2b19b

docker setup for audio_input_levels Ignore-this: d0a631dcb9c2567834998547f3b192bc darcs-hash:a76dbe8d4fb88a3e379c87f4d656be225fe72645
author drewp <drewp@bigasterisk.com>
date Wed, 05 Sep 2018 01:45:45 -0700
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)