def enableTrace(traceable):
 global _traceEnabled
 _traceEnabled = traceable
 if traceable:
  if (not _logger.handlers):
   _logger.addHandler(logging.StreamHandler())
  _logger.setLevel(logging.DEBUG)

def enableTrace ( traceable ) : global _traceEnabled _traceEnabled = traceable if traceable : if ( not _logger . handlers ) : _logger . addHandler ( logging . StreamHandler ( ) ) _logger . setLevel ( logging . DEBUG )
turn on/off the tracability .