> ## 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.

# outerbounds app logs

export const GCell = ({children, className}) => <div className={`grid-table-cell ${className || ""}`} role="cell">
    {children}
  </div>;

export const GTH = ({children, className}) => <div className={`grid-table-th ${className || ""}`} role="columnheader">
    {children}
  </div>;

export const GRow = ({children}) => <div className="grid-table-row" role="row">{children}</div>;

export const GBody = ({children}) => <div className="grid-table-body" role="rowgroup">{children}</div>;

export const GHead = ({children}) => <div className="grid-table-head" role="rowgroup">{children}</div>;

export const GTable = ({children, className, cols}) => <div className={`grid-table not-prose overflow-hidden rounded-2xl ${className || ""}`} style={{
  "--grid-table-cols": cols
}} role="table">
    {children}
  </div>;

Shows the logs of one of the deployment's workers. Provide exactly one of `--name` or `--id`. When the deployment has a single worker, it is selected automatically; with several workers, the command prompts you to pick one. Pass `--worker-id` to target a specific worker, `--previous` to see logs from the previous container instance after a crash, or `--file` to save the logs to a file.

## Usage

```bash theme={null}
outerbounds app logs [OPTIONS]
```

## Options

<GTable cols="30% 20% 50%">
  <GHead>
    <GRow>
      <GTH>Option</GTH>
      <GTH>Default</GTH>
      <GTH>Description</GTH>
    </GRow>
  </GHead>

  <GBody>
    <GRow>
      <GCell>`--name`</GCell>

      <GCell />

      <GCell>Get logs for app by name.</GCell>
    </GRow>

    <GRow>
      <GCell>`--id`</GCell>

      <GCell />

      <GCell>Get logs for app by ID.</GCell>
    </GRow>

    <GRow>
      <GCell>`--project`</GCell>

      <GCell />

      <GCell>Scope app lookup by project.</GCell>
    </GRow>

    <GRow>
      <GCell>`--branch`</GCell>

      <GCell />

      <GCell>Scope app lookup by branch.</GCell>
    </GRow>

    <GRow>
      <GCell>`--worker-id`</GCell>

      <GCell />

      <GCell>Get logs for specific worker.</GCell>
    </GRow>

    <GRow>
      <GCell>`--file`</GCell>

      <GCell />

      <GCell>Save logs to file.</GCell>
    </GRow>

    <GRow>
      <GCell>`--previous`</GCell>
      <GCell>`false`</GCell>
      <GCell>Get logs from previous container instance.</GCell>
    </GRow>
  </GBody>
</GTable>

## Examples

**View logs**

```bash theme={null}
outerbounds app logs --name prediction-service
```

**Logs from before a crash**

```bash theme={null}
outerbounds app logs --name prediction-service --previous
```
