# Logging

KONNEKT writes the log to `%localappdata%\KONNEKT`. The log consists of up to 6 files, that are rotated, if full:

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

`Client.txt` holds the newest and `client.5.txt` the oldest log lines.&#x20;

The [Log Level](#log-level) setting determines what information is written to to log.

The files will be rotated, if the newest file has reached the [Log Rotation](#log-rotation) size.

## Log Level

{% hint style="info" %}
Available for KONNEKT 2.1 or newer
{% endhint %}

User can change this setting in the preference menu of the UI. If you do the setting by policy, users can not change it anymore.

The default log level is `info`.

**Policy name:** `Logging Level`

![](/files/VEOb2qWfyeFUsbxDqA5K)

<table><thead><tr><th width="232.33333333333331"></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Option</strong></td><td><strong>Value</strong></td><td><strong>Behavior</strong></td></tr><tr><td>No logging</td><td>0</td><td>No logging</td></tr><tr><td>Error</td><td>1</td><td>Only error records will be stored</td></tr><tr><td>Info (default)</td><td>2</td><td>Info and error records will be stored</td></tr><tr><td>Debug</td><td>3</td><td>All log records will be stored</td></tr></tbody></table>

### **There are several ways to apply the policy**

1. Via GPO, see [settings via GPO](/configuration/management-options/settings-via-gpo.md)
2. Pushing policies via Intune, see [settings for Intune Managed Devices](/configuration/management-options/setting-for-intune-managed-devices-1.md)
3. Manually by adding the key in the registry

### Manual setting in the registry

{% hint style="info" %}
You do not need this if you use GPO or Intune management
{% endhint %}

* **Value name:** `LogLevel`
* **Value type:** `REG_DWORD`
* **Value data:** `0, 1, 2 or 3` (see table above)
* **Value stored in:**
  * `HKEY_CURRENT_USER\SOFTWARE\Policies\GlueckKanja\Konnekt`\
    or
  * `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GlueckKanja\Konnekt`

## Log Rotation

{% hint style="warning" %}
Please do not use this setting unless requested by our support team.
{% endhint %}

The Log Rotation setting determines the maximum size of one log file. The **default** is 1 MB (1024 \* 1024 = 1.048.576 bits), so that the maximum total size of all 6 log files is 6 MB.

* **Value name:** `LogRotation`
* **Value type:** `REG_DWORD`
* **Value data:** Maximum files size; unit is bits
* **Value stored in:**
  * `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/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.
