# 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`

![](https://2727108687-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>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](https://docs.konnekt.io/configuration/management-options/settings-via-gpo)
2. Pushing policies via Intune, see [settings for Intune Managed Devices](https://docs.konnekt.io/configuration/management-options/setting-for-intune-managed-devices-1)
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`
