import time
import logging

# Configure logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')

loop_times = []

def profile_loop_iteration(iteration_number, execution_time_ms):
    """Logs the execution time of a single loop iteration.

    Args:
        iteration_number (int): The iteration number of the loop.
        execution_time_ms (float): The execution time in milliseconds.
    """
    loop_times.append((iteration_number, execution_time_ms))
    logging.debug(f"Loop iteration {iteration_number}: Execution time = {execution_time_ms:.2f} ms")

def get_loop_times():
    """Returns the collected loop execution times.

    Returns:
        list: A list of tuples, where each tuple contains the iteration number and execution time in milliseconds.
    """
    return loop_times

# Example usage (for testing)
if __name__ == '__main__':
    profile_loop_iteration(1, 10.5)
    profile_loop_iteration(2, 12.3)
    print(get_loop_times())
