clearLogEntries function exported ✓ 100.0%
Last updated: 2026-03-01T23:25:47.125Z
Location
Metrics
LOC: 19
Complexity: 4
Params: 0
Coverage: 100.0% (9/9 lines, 3x executed)
Signature
clearLogEntries(): : Promise<void>
Summary
Clears all log entries from memory and storage.
Source Code
export async function clearLogEntries(): Promise<void> {
localEntries = [];
pendingEntries = [];
if (flushTimer) {
clearTimeout(flushTimer);
flushTimer = null;
}
if (hasSessionStorage()) {
try {
await chrome.storage.session.set({ [STORAGE_KEY]: [] });
} catch {
// Ignore
}
}
notifyListeners();
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| hasSessionStorage | calls |
| notifyListeners | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| LogViewerVariant | uses |
| render | calls |