ui/client/features/diagnostics/services/LogsPolling
Recent server/command output is polled while the Logs tab is mounted.
Cockpit client (features), v0.9. Source: ui/client/features/diagnostics/services/LogsPolling.ts.
Variables#
LOGS_POLL_MS#
constLOGS_POLL_MS:2500=2500
Defined in: ui/client/features/diagnostics/services/LogsPolling.ts:2
Recent server/command output is polled while the Logs tab is mounted.
Functions#
watchLogs()#
watchLogs(
refresh,intervalMs?): () =>void
Defined in: ui/client/features/diagnostics/services/LogsPolling.ts:6
Timers are external effects (SERVICE-001): the Logs polling loop lives here, not in its hook.
Refresh once now, then every intervalMs; the returned function stops it.
Parameters#
refresh
() => unknown
intervalMs?
number = LOGS_POLL_MS
Returns#
() => void