> 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` ファイルとサブフォルダー `Logs`.

### 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 System アカウントで実行されています。 `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.
