Skip to main content

LogViewer()

Home > @backstage/core-components > LogViewer

A component that displays logs in a scrollable text area.

Signature:

function LogViewer(props: LogViewerProps): React.JSX.Element;

Parameters

ParameterTypeDescription
propsLogViewerProps

Returns:

React.JSX.Element

Remarks

The LogViewer has support for search and filtering, as well as displaying text content with ANSI color escape codes.

Since the LogViewer uses windowing to avoid rendering all contents at once, the log is sized automatically to fill the available vertical space. This means it may often be needed to wrap the LogViewer in a container that provides it with a fixed amount of space.