Skip to content

dsdk / v1.47 / taskLogs

Function: taskLogs() ​

taskLogs(opts, callback): void

Get task logs

Get stdout and stderr logs from a task. See also /containers/{id}/logs.

Note: This endpoint works only for services with the local, json-file or journald logging drivers.

Parameters ​

ParameterType

opts

ExtendedOptions<TaskLogsData>

callback

StreamCallbackFn

Returns ​

void