def METHOD_NAME(self, log_entry: dict, log_path: str, queue: list):
    """add a given log entry to the specified queue, displacing the
    last entry in the queue if the queue has reached it's limit"""
    if len(queue)==self.max_queue_length:
        self.save_log_entry(queue.pop(0), log_path)
    queue.append(log_entry)