Skip to main content

Function: logsContainer()

logsContainer(engineId, id, callback): Promise<void>

Get the streamed logs of a container

Parameters

engineId

string

the id of the engine managing the container, obtained from the result of containerEngine.listContainers

id

string

the id of the container on this engine, obtained from the result of containerEngine.listContainers or as the result of containerEngine.createContainer

callback

(name, data) => void

the function called when new logs are emitted or new events happen on the stream. The value of name can be either data (and data contains the logs), or end indicating the end of the stream, or first-message indicating no data has been emitted yet on the stream.

Returns

Promise<void>

Defined in

packages/extension-api/src/extension-api.d.ts:3751