> 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 が収集する各種ログファイルの詳細な説明

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

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

### tray.log

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

<figure><img src="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fwiywye9cKsdGIhjorsjH%2Ftray-logs.png?alt=media&amp;token=98f77e8e-2a37-4cab-9790-b05ae0506673" 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` フォルダー内には、パッケージ 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="https://3438325150-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MkrcM7cKOpXKri1kVrh%2Fuploads%2Fq4z3SR2JfivZ1cRd7cey%2Fwindows-realmjoin-logs.png?alt=media&amp;token=944c074c-29fc-4d06-a32f-75c4bff77751" 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
