> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/toraburushtinguto-faq/troubleshooting/package-installation-issues/logfiles-structure.md).

# ログファイルの構成

## ユーザーコンテキストのログファイル

RealmJoin によって書き込まれるユーザーコンテキストのログファイルは、次の場所にあります `%LOCALAPPDATA%\\RealmJoin`。このフォルダーには `tray.log` ファイルとサブフォルダー `ログ`.

### tray.log

その `tray.log` ファイルは、サインイン中のユーザーのセッションで実行されている RealmJoin トレイ アプリケーションによって書き込まれます。 `tray.log` は最新のログファイルで、古いものには昇順の番号が付加されます。最大の番号が 2 番目に新しいログファイルです。番号が小さいほど、ログファイルは古くなります。

<figure><img src="/files/3bec800007d89d8fd11b1bd676f28684c9bbe84e" alt=""><figcaption><p>tray.log が最新のファイルで、tray.904.log が 2 番目に新しいファイルです。logs サブフォルダーには個別のセットアップ ログが含まれている場合があります。</p></figcaption></figure>

その `tray.log` RealmJoin トレイ アプリケーションによって実行されるさまざまなタスクに関する情報が含まれます:

* 割り当てられたパッケージに関する情報。依存関係、順序、制約、予定された操作、制限など
* 状態付きのパッケージ一覧（Installed、Outdated、NotInstalled）
* 実行中および完了済みの展開フェーズ
* RealmJoin の設定とクライアント更新
* RealmJoin トレイの起動情報
* LAPS アカウントへの変更
* ユーザーコンテキストのインストール パッケージからのコマンドライン出力。

### Logs サブフォルダー

次の `%LOCALAPPDATA\RealmJoin\Logs` フォルダー内には、パッケージ ID のような名前のフォルダーが見つかる場合があります。ユーザーコンテキストで実行される craft パッケージのみが、このフォルダーに個別のセットアップ ログを書き込む可能性があります。\
ただし、必ずそうとは限らないため、このフォルダーが空である場合もあります。\
ユーザーの craft インストールに MSI または EXE ファイルが含まれていた場合は、対応するパッケージ フォルダー内にセットアップ ログが見つかる可能性があります。

## Chocolatey のログファイル

Chocolatey のログファイルは次の場所に書き込まれます `C:\ProgramData\chocolatey\logs\`。2 種類のログファイルがあります `chocolatey.log` および `choco.summary.log`。\
その `choco.summary.log` 基本情報しか含まれていないため、専ら `chocolatey.log` トラブルシューティングに使用されます。

## システムコンテキストのログファイル

システムコンテキストのログファイルは次の場所にあります `C:\WINDOWS\Logs`。このフォルダー内には `realmjoin.log` ファイルと `RealmJoin` フォルダーがあります。

### realmjoin.log

その `realmjoin.log` ファイルは、RealmJoin トレイ アプリケーションによって必要に応じて起動される RealmJoin CloudConnector サービスによって書き込まれます。RealmJoin CloudConnector サービスは Local Sytem アカウントで実行されています。 `realmjoin.log` は最新のログファイルで、古いものには昇順の番号が付加されます。最大の番号が 2 番目に新しいログファイルです。番号が小さいほど、ログファイルは古くなります。

〜のため、 `realmjoin.log` このファイルには RealmJoin サービスからの情報が含まれているため、システム権限で実行する必要があるタスクに関するログが含まれます:

* RealmJoin サービスの起動情報
* LAPS アカウントの作成と削除
* システムコンテキスト / choco インストール パッケージからのコマンドライン出力。

### Logs フォルダー <a href="#user-content-logs-folder-1" id="user-content-logs-folder-1"></a>

次の `C:\WINDOWS\Logs\RealmJoin\Packages` フォルダー内には、パッケージ ID のような名前のフォルダーが見つかります。セットアップ ファイルとパッケージでサポートされている場合、セットアップ ファイルによって書き込まれたログは対応するフォルダー内にあります。ログ ファイル名には通常、インストールのタイムスタンプ、パッケージ ID、セットアップ ファイル名、パッケージ バージョン、および実行された操作（インストール/アンインストール）が含まれます。必ずそうとは限らないため、これらの（サブ）フォルダーが空である場合もあります。

<figure><img src="/files/bf099bac12946142c7f603a15e37f45ebdb6289e" alt=""><figcaption><p>各パッケージのサブフォルダーを含む Packages フォルダー。これらのサブフォルダーには、インストーラーが書き込んだログファイルが含まれている場合があります。</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmjoin.com/ja/toraburushtinguto-faq/troubleshooting/package-installation-issues/logfiles-structure.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
