def METHOD_NAME(simInstance, retentionPolicies):
    """ Adds logs for variables and messages to a simInstance
    Args:
        simInstance: The simulation instance to add logs to.
        retentionPolicies: RetentionPolicy[] list that defines the data to log.
    """
    for retentionPolicy in retentionPolicies:
        retentionPolicy.addLogsToSim(simInstance)
    # TODO handle duplicates somehow?