> For the complete documentation index, see [llms.txt](https://docs.konnekt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.konnekt.io/ja/configuration/system-settings/logging.md).

# ロギング

KONNEKTはログを次の場所に書き込みます `%localappdata%\KONNEKT`。ログは最大6個のファイルで構成され、ファイルがいっぱいになるとローテーションされます。

* client.txt
* client.1.txt
* client.2.txt
* client.3.txt
* client.4.txt
* client.5.txt

`Client.txt` には最新のログ行が含まれ、 `client.5.txt` には最も古いログ行が含まれます。

「 [ログレベル](#log-level) 」設定により、ログに書き込む情報が決まります。

最新のファイルが次の [ログローテーション](#log-rotation) サイズに達すると、ファイルがローテーションされます。

## ログレベル

{% hint style="info" %}
KONNEKT 2.1以降で使用可能
{% endhint %}

ユーザーはUIの設定メニューでこの設定を変更できます。ポリシーで設定すると、ユーザーは変更できなくなります。

デフォルトのログレベルは `info`.

**ポリシー名：** `Logging Level`

![](https://1902283602-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8zLVuKYctMIUr68_fs%2Fuploads%2FKFhNNx0338eBxhuwVxX3%2F2022-02-25%20Log%20Level.png?alt=media\&token=00920638-a3d6-4739-8630-b4858c7e1314)

<table><thead><tr><th width="232.33333333333331"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>オプション</strong></td><td><strong>値</strong></td><td><strong>動作</strong></td></tr><tr><td>ログなし</td><td>0</td><td>ログなし</td></tr><tr><td>エラー</td><td>1</td><td>エラーの記録のみが保存されます</td></tr><tr><td>情報（デフォルト）</td><td>2</td><td>情報とエラーの記録が保存されます</td></tr><tr><td>デバッグ</td><td>3</td><td>すべてのログ記録が保存されます</td></tr></tbody></table>

### **ポリシーを適用する方法はいくつかあります**

1. GPO経由で設定する方法については、 [GPO経由の設定](https://docs.konnekt.io/ja/configuration/management-options/settings-via-gpo.md)
2. Intune経由でポリシーをプッシュする方法については、 [Intune管理デバイスの設定](https://docs.konnekt.io/ja/configuration/management-options/setting-for-intune-managed-devices-1.md)
3. レジストリにキーを追加して手動で設定する方法

### レジストリでの手動設定

{% hint style="info" %}
GPOまたはIntuneで管理する場合、この設定は不要です
{% endhint %}

* **値の名前：** `LogLevel`
* **値の種類：** `REG_DWORD`
* **値のデータ：** `0, 1, 2 or 3` （上の表を参照）
* **保存先：**
  * `HKEY_CURRENT_USER\SOFTWARE\Policies\GlueckKanja\Konnekt`\
    または
  * `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GlueckKanja\Konnekt`

## ログローテーション

{% hint style="warning" %}
サポートチームから指示があった場合を除き、この設定は使用しないでください。
{% endhint %}

ログローテーション設定では、1つのログファイルの最大サイズを指定します。 **既定値** は1 MB（1024 \* 1024 = 1,048,576バイト）です。そのため、6個のログファイルの合計最大サイズは6 MBになります。

* **値の名前：** `LogRotation`
* **値の種類：** `REG_DWORD`
* **値のデータ：** 最大ファイルサイズ（単位：バイト）
* **保存先：**
  * `HKEY_CURRENT_USER\SOFTWARE\GlueckKanja\Konnekt`


---

# 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.konnekt.io/ja/configuration/system-settings/logging.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.
