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

# How do I download the console log file from a run?

W\&B는 스크립트의 stdout과 stderr를 `output.log`(또는 `logs/` 아래의 멀티파트 청크)로 저장합니다. 이 파일을 가져올 수 있는 위치는 run이 완료되었는지, 아직 실행 중인지, 비정상 종료되었는지에 따라 달라집니다. 캡처 설정과 `console_multipart`에 대한 자세한 내용은 [콘솔 로그](/ko/products/wandb/app/console-logs)를 참조하세요.

<h2 id="from-the-ui">
  UI에서 다운로드
</h2>

1. run 페이지를 엽니다.
2. **Files** 탭을 클릭합니다.
3. `output.log`(또는 `logs/` 아래의 파일)를 찾아 다운로드 아이콘을 클릭합니다.

기본적으로 `output.log`는 *run이 종료될 때* 업로드됩니다. 초기화 시 멀티파트 로깅을 활성화하지 않았다면 run이 실행 중인 동안에는 **Files** 탭에 표시되지 않을 수 있습니다.

<h2 id="programmatically-via-the-api">
  API를 사용하여 프로그래밍 방식으로 설정
</h2>

```python theme={"system"}
import wandb

api = wandb.Api()
run = api.run("entity/project/run_id")
run.file("output.log").download(replace=True)
```

멀티파트 run도 같은 방법으로 `logs/` 아래의 개별 파일 목록을 조회하고 다운로드하세요.

<h2 id="while-the-run-is-still-running">
  run이 아직 실행 중일 때
</h2>

`wandb.init` 시점에 [멀티파트 콘솔 로깅](/ko/products/wandb/app/console-logs)을 활성화하세요. run이 활성 상태인 동안 SDK가 타임스탬프가 붙은 청크를 `logs/` 아래에 기록하고 업로드하려면 `wandb` **v0.22.3** 이상을 사용해야 합니다. run이 시작된 후에는 업로드 주기를 변경할 수 없습니다.

<h2 id="if-the-run-crashed">
  run이 비정상 종료된 경우
</h2>

멀티파트 로깅을 사용하지 않으면 비정상 종료된 run의 `output.log`가 서버에 없을 수 있습니다. 멀티파트를 활성화한 경우에는 비정상 종료 전에 업로드된 청크를 계속 다운로드할 수 있습니다. 서버 측 파일이 없다면 `wandb/run-<timestamp>-<run-id>/logs/output.log`에 있는 로컬 사본을 확인하세요.

<h2 id="resuming-a-run">
  run 재개하기
</h2>

멀티파트 로깅을 사용하지 않으면 `wandb.init(resume="allow", id=...)`가 단일 `output.log` 파일을 덮어쓸 수 있습니다. `console_multipart=True`를 설정하면 세션마다 별도의 청크가 유지됩니다. 멀티파트 로깅을 활성화하려면 `wandb` **v0.22.3** 이상이 필요하고, run을 재개할 때 청크가 올바르게 업로드되려면 **`wandb` v0.20.1** 이상이 필요합니다. 자세한 내용은 [콘솔 로그](/ko/products/wandb/app/console-logs)를 참조하세요.

<h2 id="more-lines-than-the-logs-tab-shows">
  로그가 Logs 탭에 표시되는 것보다 많은 경우
</h2>

**Logs** 탭에는 성능상의 이유로 한 번에 최대 10,000줄까지만 표시됩니다. 전체 로그는 **Files** 탭이나 API에서 다운로드하세요. 캡처 문제는 [run의 콘솔 출력이 캡처되지 않는 이유는 무엇인가요?](/ko/support/models/articles/why-is-console-output-not-captured-for-my-run)를 참조하세요.

***

<Badge stroke shape="pill" color="blue" size="md">[Logs](/ko/support/models/tags/logs)</Badge><Badge stroke shape="pill" color="blue" size="md">[Runs](/ko/support/models/tags/runs)</Badge>
