recordLog method
Records a log entry by adding it to the queue.
Implementation
void recordLog(String log) {
_logQueue.add(log);
// Start the timer if it's not already running and the queue has logs
// to process
if (_batchTimer == null || !_batchTimer!.isActive) _startBatchTimer();
// Process the queue immediately if it reaches the batch size,
// otherwise, it will be processed at the next interval.
if (_logQueue.length >= batchSize) _processLogQueue();
}