def create_logger(filename, filemode='a'):
    file_handler = logging.FileHandler(filename=filename, mode=filemode)
    stdout_handler = logging.StreamHandler(sys.stdout)
    handlers = [file_handler, stdout_handler]
    formatter = '%(asctime)s %(levelname)s: %(message)s'
    datefmt = '%m/%d/%Y %I:%M:%S %p'
    logging.basicConfig(format=formatter, datefmt=datefmt, level=logging.DEBUG, handlers=handlers)
    return
def create_logger(filename, filemode='a'):
    file_handler = logging.FileHandler(filename=filename, mode=filemode)
    stdout_handler = logging.StreamHandler(sys.stdout)
    handlers = [file_handler, stdout_handler]
    formatter = '%(asctime)s %(levelname)s: %(message)s'
    datefmt = '%m/%d/%Y %I:%M:%S %p'
    logging.basicConfig(format=formatter, datefmt=datefmt, level=logging.DEBUG, handlers=handlers)
    return