LogClient
Hierarchy
- ResourceClient
- LogClient
Index
Properties
inheritedapifyClient
inheritedbaseUrl
inheritedhttpClient
optionalinheritedid
optionalinheritedparams
inheritedpublicBaseUrl
inheritedresourcePath
optionalinheritedsafeId
inheritedurl
Methods
get
Retrieves the log as a string.
Parameters
options: LogOptions = {}
Log retrieval options.
Returns Promise<undefined | string>
The log content as a string, or
undefinedif it does not exist.
stream
Retrieves the log as a Readable stream. Only works in Node.js.
Parameters
options: LogOptions = {}
Log retrieval options.
Returns Promise<undefined | Readable>
The log content as a Readable stream, or
undefinedif it does not exist.
Client for accessing Actor run or build logs.
Provides methods to retrieve logs as text or stream them in real-time. Logs can be accessed for both running and finished Actor runs and builds.
https://docs.apify.com/platform/actors/running/runs-and-builds#logging