Skip to main content
Version: Next

usePodLogs()

Home > @backstage/plugin-kubernetes-react > usePodLogs

Retrieves the logs for the given pod

Signature:

usePodLogs: ({ containerScope, previous }: PodLogsOptions) => import("react-use/esm/useAsyncFn").AsyncState<{
text: string;
}>

Parameters

Parameter

Type

Description

{ containerScope, previous }

PodLogsOptions

**Returns:**

import("react-use/esm/useAsyncFn").AsyncState<{ text: string; }>