> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# DeployedApp.logs

```python theme={null}
DeployedApp.logs(previous: bool = False)
```

Get logs from all worker replicas.

**Parameters:**

**previous** `boolean` (default: false)

If true, returns logs from the previous execution of workers. Useful for debugging crashlooping workers.

**Returns:**

**value** `object`

Dictionary mapping worker IDs to their log lines.

**Examples:**

```python theme={null}
# 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)
```
