Returns a data.frame of log entries, optionally filtered. All filter arguments are optional and combined with AND logic.
Arguments
- conn
A connection object from
pl_connect().- flow
Optional flow name to filter by.
- status
Optional status to filter by (
"SUCCESS","ERROR", or"FATAL").- from
Optional start timestamp (
POSIXctor ISO 8601 string).- to
Optional end timestamp (
POSIXctor ISO 8601 string).- limit
Maximum number of records to return. Default 50.
Examples
if (FALSE) { # \dontrun{
conn <- pl_connect()
pl_get_logs(conn)
pl_get_logs(conn, flow = "ectrl_data_load", status = "ERROR")
pl_get_logs(conn, from = Sys.time() - 86400, limit = 100)
} # }