import React, { useState, useEffect } from 'react'; import { FileText, Download, Trash2, Activity } from 'lucide-react'; import { logger } from '../../services/logger'; const LogSection = () => { const [logCount, setLogCount] = useState(0); useEffect(() => { // Initial count setLogCount(logger.getLogs().length); // Simple poller to update count while settings are open const interval = setInterval(() => { setLogCount(logger.getLogs().length); }, 1000); return () => clearInterval(interval); }, []); const handleDownload = () => { logger.download(); }; const handleClear = () => { if (confirm('Are you sure you want to clear all execution logs?')) { logger.clear(); setLogCount(0); } }; return (

System Logs

Debug & Execution Logs

Record of reasoning processes, API calls, and errors. Useful for debugging specific issues.

Current entries: {logCount}

); }; export default LogSection;