Skip to content

dsdk / v1.47 / serviceLogs

Function: serviceLogs() ​

serviceLogs(opts, callback): void

Get service logs

Get stdout and stderr logs from a service. 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<ServiceLogsData>

callback

StreamCallbackFn

Returns ​

void