def patch_python_logging_handlers():
 logging.StreamHandler = StreamHandler
 logging.FileHandler = FileHandler
 logging.handlers.SysLogHandler = SysLogHandler
 logging.handlers.WatchedFileHandler = WatchedFileHandler
 logging.handlers.RotatingFileHandler = RotatingFileHandler
 if (sys.version_info >= (3, 2)):
  logging.handlers.QueueHandler = QueueHandler

def patch_python_logging_handlers ( ) : logging . StreamHandler = StreamHandler logging . FileHandler = FileHandler logging . handlers . SysLogHandler = SysLogHandler logging . handlers . WatchedFileHandler = WatchedFileHandler logging . handlers . RotatingFileHandler = RotatingFileHandler if ( sys . version_info >= ( 3 , 2 ) ) : logging . handlers . QueueHandler = QueueHandler
patch the python logging handlers with out mixed-in classes .