> For the complete documentation index, see [llms.txt](https://navixy.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://navixy.com/docs/on-premise/pt-br/on-premise/how-to-guide/troubleshooting/working-with-logs/extended-logging.md).

# Registro estendido

Às vezes os dispositivos não funcionam com a plataforma como esperado. Os problemas podem ter naturezas diferentes e, na maioria dos casos, estão relacionados a um dispositivo específico, a um modelo específico ou a firmware não padrão.

Nesses casos, logs avançados podem ser excepcionalmente úteis. Neles você pode acompanhar todos os detalhes da operação do dispositivo na plataforma.

Para ativar logs estendidos, faça o seguinte:

1. Edite o `config.properties` arquivo de **tcp-server**:

* Linux: `/home/java/tcp-server/conf/config.properties`
* Windows: `C:\java\tcp-server\conf\config.properties`

2. Adicione a seguinte linha ao final do config (substitua `<IMEI>` pelo IMEI real do dispositivo):

```
debug.traceDevices=<IMEI>
```

Para múltiplos IMEIs:

```
debug.traceDevices=<IMEI1>,<IMEI2>
```

exemplo:

```
debug.traceDevices=33225566,44772211
```

4. Reinicie o **tcp-server** serviço. Isso aplicará a configuração e criará um `/debug` subdiretório em `.../tcp-server/log/`.
5. Aguarde pelos problemas ou os acione
6. Verifique o `/log/debug` diretório. Ele conterá um(s) arquivo(s) chamado(s) `trace-<IMEI>.log`.
7. Pare o registro estendido quando não for mais necessário, caso contrário novos logs continuarão consumindo espaço em disco. Para isso, comente a linha adicionada anteriormente (com o símbolo `#` ) ou exclua-a e então reinicie **tcp-server**.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://navixy.com/docs/on-premise/pt-br/on-premise/how-to-guide/troubleshooting/working-with-logs/extended-logging.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
