  // Ensure the log table does not exceed 100 rows
          while (logsTableBody.children.length > 100) {
              logsTableBody.removeChild(logsTableBody.lastChild);
          }

          // Add a message to the last line of the table
          if (logsTableBody.children.length === 100) {
              let messageRow = logsTableBody.querySelector('.log-message-row');
              if (!messageRow) {
                  messageRow = document.createElement('tr');
                  messageRow.classList.a