Class: Logs

Logs(connection, endpoint)

Interface to loop through the logs.

Constructor

new Logs(connection, endpoint)

Creates a new Logs instance to retrieve logs from a back-end.

Parameters:
Name Type Description
connection Connection

A Connection object representing an established connection to an openEO back-end.

endpoint string

The relative endpoint to request the logs from, usually /jobs/.../logs or /services/.../logs with ... being the actual job or service id.

Source:

Members

(protected) connection :Connection

Type:
Source:

Methods

(async) next(limit) → {Promise.<LogsAPI>}

Retrieves the next log entries since the last request.

Retrieves the full response compliant to the API, including log entries and links.

Parameters:
Name Type Default Description
limit number null

The number of log entries to retrieve per request, as integer.

Source:
Returns:
Type
Promise.<LogsAPI>

(async) nextLogs(limit) → {Promise.<Array.<Log>>}

Retrieves the next log entries since the last request.

Retrieves log entries only.

Parameters:
Name Type Default Description
limit number null

The number of log entries to retrieve per request, as integer.

Source:
Returns:
Type
Promise.<Array.<Log>>