| get_log | R Documentation |
Get the log output for a job. Requires Connect 2022.10.0 or newer.
get_log(job, max_log_lines = NULL)
job |
A job, represented by an element from the list returned by |
max_log_lines |
Optional. An integer indicating the maximum number of
log lines to return. If |
Note: The output of get_jobs() cannot be used with get_log().
Please use an object from the list returned by get_job_list().
A data frame with the requested log. Each row represents an entry.
source: stdout or stderr
timestamp: The time of the entry.
data: The logged text.
Other job functions:
get_job(),
get_jobs(),
terminate_jobs()
Other content functions:
content_delete(),
content_item(),
content_title(),
content_update(),
create_random_name(),
dashboard_url(),
delete_thumbnail(),
delete_vanity_url(),
deploy_repo(),
get_associations(),
get_bundles(),
get_environment(),
get_image(),
get_job(),
get_jobs(),
get_thumbnail(),
get_vanity_url(),
git,
has_thumbnail(),
lock_content(),
permissions,
search_content(),
set_image_path(),
set_integrations(),
set_run_as(),
set_thumbnail(),
set_vanity_url(),
swap_vanity_url(),
swap_vanity_urls(),
terminate_jobs(),
verify_content_name()
## Not run:
client <- connect()
item <- content_item(client, "951bf3ad-82d0-4bca-bba8-9b27e35c49fa")
jobs <- get_job_list(item)
log <- get_log(jobs[[1]])
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.