(tracable)
turn on/off the tracability.

    tracable: boolean value. if set True, tracability is enabled.
turn on/off the tracability.
turn on / off the tracability .
def enableTrace(tracable):
    """
    turn on/off the tracability.

    tracable: boolean value. if set True, tracability is enabled.
    """
    global traceEnabled
    traceEnabled = tracable
    if tracable:
        if not logger.handlers:
            logger.addHandler(logging.StreamHandler())
        logger.setLevel(logging.DEBUG)
def enableTrace ( tracable ) : global traceEnabled traceEnabled = tracable if tracable : if not logger . handlers : logger . addHandler ( logging . StreamHandler ( ) ) logger . setLevel ( logging . DEBUG )