def get_component_logger(name, strm=sys.stdout):
    log = logging.getLogger(name)
    if ('TEST_DEBUG' in os.environ):
        log.setLevel(logging.DEBUG)
    else:
        log.setLevel(logging.INFO)
    _h = logging.StreamHandler(strm)
    log.addHandler(_h)
    return log
def get_component_logger(name, strm=sys.stdout):
    log = logging.getLogger(name)
    if ('TEST_DEBUG' in os.environ):
        log.setLevel(logging.DEBUG)
    else:
        log.setLevel(logging.INFO)
    _h = logging.StreamHandler(strm)
    log.addHandler(_h)
    return log