> 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/pt/configuration/system-settings/logging.md).

# Registo

O KONNEKT grava o registo em `%localappdata%\KONNEKT`. O registo pode conter até 6 ficheiros, que são rodados quando ficam cheios:

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

`Client.txt` contém as linhas de registo mais recentes e `client.5.txt` as mais antigas.

A definição [Nível de registo](#log-level) determina as informações gravadas no registo.

Os ficheiros são rodados quando o ficheiro mais recente atinge o [tamanho definido em Rotação do registo.](#log-rotation) definido.

## Nível de registo

{% hint style="info" %}
Disponível no KONNEKT 2.1 ou posterior
{% endhint %}

Os utilizadores podem alterar esta definição no menu de preferências da interface. Se configurar a definição através de uma política, os utilizadores deixam de a poder alterar.

O nível de registo predefinido é `info`.

**Nome da política:** `Logging Level`

![](https://1241930089-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>Opção</strong></td><td><strong>Valor</strong></td><td><strong>Comportamento</strong></td></tr><tr><td>Sem registo</td><td>0</td><td>Sem registo</td></tr><tr><td>Erro</td><td>1</td><td>Só serão guardados registos de erro</td></tr><tr><td>Informações (predefinição)</td><td>2</td><td>Serão guardados registos informativos e de erro</td></tr><tr><td>Depuração</td><td>3</td><td>Serão guardados todos os registos</td></tr></tbody></table>

### **Existem várias formas de aplicar a política**

1. Através de GPO, consulte [definições através de GPO](https://docs.konnekt.io/pt/configuration/management-options/settings-via-gpo.md)
2. Implementar políticas através do Intune; consulte [definições para dispositivos geridos pelo Intune](https://docs.konnekt.io/pt/configuration/management-options/setting-for-intune-managed-devices-1.md)
3. Manualmente, adicionando a chave ao registo

### Configuração manual no registo

{% hint style="info" %}
Não precisa de fazer isto se utilizar a gestão por GPO ou Intune
{% endhint %}

* **Nome do valor:** `LogLevel`
* **Tipo de valor:** `REG_DWORD`
* **Dados do valor:** `0, 1, 2 ou 3` (ver tabela acima)
* **Valor armazenado em:**
  * `HKEY_CURRENT_USER\SOFTWARE\Policies\GlueckKanja\Konnekt`\
    ou
  * `HKEY_LOCAL_MACHINE\SOFTWARE\Policies\GlueckKanja\Konnekt`

## Rotação de logs

{% hint style="warning" %}
Não utilize esta definição, a menos que a nossa equipa de suporte o solicite.
{% endhint %}

A definição Rotação de logs determina o tamanho máximo de um ficheiro de log. O **predefinido** é 1 MB (1024 \* 1024 = 1 048 576 bytes), pelo que o tamanho total máximo dos 6 ficheiros de log é 6 MB.

* **Nome do valor:** `LogRotation`
* **Tipo de valor:** `REG_DWORD`
* **Dados do valor:** Tamanho máximo do ficheiro, em bytes
* **Valor armazenado em:**
  * `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/pt/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.
