Constructor
new Logs(connection, endpoint, levelopt, nullable)
Creates a new Logs instance to retrieve logs from a back-end.
Parameters:
Name | Type | Attributes | Default | 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 |
||
level |
string |
<optional> <nullable> |
null | Minimum level of logs to return. |
Members
(protected) connection :Connection
Type:
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. |
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. |
Returns:
- Type
- Promise.<Array.<Log>>