# Logging

## Controllo delle operazioni

Qualsiasi operazione viene registrata in un file di log e può essere utilizzato per il supporto, il test e operazioni di debug dai tecnici del negozio Magento.

Per attivare il log nelle versioni precendenti alla versione 2.3 bisogna accedere alla seguente sezione:

{% hint style="info" %}
"Stores" -> "Configuration" -> "Advanced" -> "Developer" -> "Debug" -> "Log to File"
{% endhint %}

Per attivare il sistema di registrazione log di Magento 2.3 bisogna accedere via shell ed eseguire il seguente comando:

{% hint style="info" %}
php bin/magento setup:config:set --enable-debug-logging=true && php bin/magento cache:flush
{% endhint %}

Dopo aver attivato il sistema di log e salvato la configurazione, il software magento creerà uno o più file di testo con estensione .log all'interno della cartella del progetto /var/log. La cartella /var/log deve avere i permessi di scrittura per poter creare i file. Per ulteriori informazioni contattare il servizio assistenza del piano hosting.


---

# 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.sdi.shinesoftware.it/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.
