Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/diagnostics/hooks/useLogs

Cockpit client (features), next. Source: ui/client/features/diagnostics/hooks/useLogs.tsx.

Functions#

useLogs()#

useLogs(): object

Defined in: ui/client/features/diagnostics/hooks/useLogs.tsx:11

Recent server/command output, polled while the Logs tab is mounted. "Clear" only hides what is already shown (the server keeps its own bounded buffer).

Returns#

object

clear

clear: () => void

Returns

void

entries

entries: LogEntry[]

error

error: string | null

refresh

refresh: () => Promise<void>

Returns

Promise<void>