// ========== ERROR LOG VIEWER (DC-052) ========== // DC-052: Adds Level / Context / Search / Time-range filters, server-side // pagination with Load More, click-to-expand stack frames, and a distinct // contexts dropdown backed by /api/v1/error-logs/contexts. Mirrors the // audit-log UX (DC-050) so operators can drill into a subsystem as easily // as they can audit who-did-what. (function() { // Inject modal HTML. Same weather-modal shell as audit-log so styles // are shared; wider min-width because error stacks need room to breathe. injectModal('error-log-modal', `
| When | '; html += 'Level | '; html += 'Context | '; html += 'Message | '; html += 'IP | '; html += '
|---|---|---|---|---|
| ${escapeHtml(ts)} | `; html += `${escapeHtml(level)} | `; html += `${escapeHtml(ctx)} | `; html += `${escapeHtml(msg)} | `; html += `${escapeHtml(ip)} | `; html += '