# ログ記録

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` 最も古いログ行が保持されます。&#x20;

この [Log Level](#log-level) この設定では、ログに書き込まれる情報が決まります。

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

## Log Level

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

ユーザーは UI の設定メニューでこの設定を変更できます。ポリシーで設定した場合、ユーザーはそれ以降変更できません。

既定のログレベルは `info`.

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

![](/files/c7e326ed8b4e6b17117a35afff9096598cdc84cd)

<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>Error</td><td>1</td><td>エラー記録のみが保存されます</td></tr><tr><td>Info（既定）</td><td>2</td><td>Info とエラーの記録が保存されます</td></tr><tr><td>Debug</td><td>3</td><td>すべてのログ記録が保存されます</td></tr></tbody></table>

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

1. GPO 経由、こちらを参照 [GPO による設定](/ja/configuration/management-options/settings-via-gpo.md)
2. Intune を介したポリシーのプッシュ、こちらを参照 [Intune 管理デバイス向けの設定](/ja/configuration/management-options/setting-for-intune-managed-devices-1.md)
3. レジストリにキーを追加して手動で

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

{% hint style="info" %}
GPO または Intune 管理を使用する場合は、これは必要ありません
{% endhint %}

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

## Log Rotation

{% hint style="warning" %}
サポートチームから依頼がない限り、この設定は使用しないでください。
{% endhint %}

Log Rotation 設定では、1つのログファイルの最大サイズが決まります。 **既定** は 1 MB（1024 \* 1024 = 1.048.576 ビット）であるため、6個のログファイルの最大合計サイズは 6 MB です。

* **値の名前:** `LogRotation`
* **値の種類:** `REG_DWORD`
* **値のデータ:** 最大ファイルサイズ。単位はビット
* **保存先:**
  * `HKEY_CURRENT_USER\SOFTWARE\GlueckKanja\Konnekt`


---

# Agent Instructions: 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:

```
GET https://docs.konnekt.io/ja/configuration/system-settings/logging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
