def JobClient.query_logs(job_id: Job | UUID | str) -> LogRecordsQuery logs emitted while running a job. Pagination is handled automatically.
Parameters
Section titled “Parameters”job_id Job | UUID | str required The job, job ID, or job ID string to query logs for.
Returns
Section titled “Returns”A LogRecords list. Each LogRecord contains time, severity_number, severity_text, body, trace_id, span_id, attributes, and runner_attributes.
LogRecords.to_pandas() converts the records to a pandas DataFrame.