logs: Access logs of a Service or Job

View source: R/debugging.R

logsR Documentation

Access logs of a Service or Job

Description

Prints contents of the log file of a Job or Service to the console. Requests the log every second if the service is enabled or the batch job is active. If the log response always empty for a given timeout, the logging stops. Also if the job or service is not active at the moment timeout is ignored and the log is just printed once. To call the different logs log_job() or log_service() are used internally.

Usage

logs(obj = NULL, job_id = NULL, service_id = NULL, con = NULL, timeout = NULL)

Arguments

obj

Service or Job object

job_id

character the jobs ID

service_id

character - the services ID

con

a connected openEO client (optional) otherwise active_connection() is used.

timeout

integer the timeout for the logging of active jobs or services after no update in seconds, if omitted it is determined internally (running / queued / enabled -> 60s)

Details

In Jupyter, RMarkdown and knitr HTML environments the timeout parameter does not apply and this function only returns the logs that are available at the time of the request. To refresh the logs, you have to re-execute the function again.

See Also

log_job() or log_service()


openeo documentation built on Nov. 17, 2022, 5:07 p.m.