boolean
default:"false"
If true, returns logs from the previous execution of workers. Useful for debugging crashlooping workers.
object
Dictionary mapping worker IDs to their log lines.
Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
DeployedApp.logs(previous: bool = False)
# Get current logs
logs = deployed.logs()
for worker_id, lines in logs.items():
print(f"Worker {worker_id}:")
for line in lines:
print(f" {line}")
# Get logs from crashed workers
previous_logs = deployed.logs(previous=True)
Was this page helpful?