# Logs

Errors happen. Most of the time, you are not aware of them because PrestaShop handles them silently. But you might want to know about them, in order to be able to correct the most regular ones and ensure a better stability for your shop.

![](https://2879814194-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fenglish-documentation-for-prestashop-1-7%2F-MD-wQcGVavHD0kqThCr%2F-MD-zRwNQZXlX2x8qPHm%2F43417626.png?generation=1595597002833550\&alt=media)

The "Logs" page is where you can have a look at all the actions performed in your shop, and thus find the PHP errors which could plague your shop. They are listed in the page's central table, and are presented in 4 levels:

* **1: Informative only**. Run-time notices. Indicate that the script encountered something that could indicate an error, but could also happen in the normal course of running a script.
* **2: Warning**. Run-time warnings (non-fatal errors). Execution of the script is not halted.
* **3: Error**.
* **4: Major issue (crash)!**. Fatal run-time errors. These indicate errors that cannot be recovered from, such as a memory allocation problem. The execution of the script is halted.

These explanations are the official ones from the PHP manual. Read more: <http://www.php.net/manual/en/errorfunc.constants.php>.

## Logs by e-mail <a href="#logs-logsbye-mail" id="logs-logsbye-mail"></a>

The error levels also serve as values for the "Logs by email" feature.\
PrestaShop adds one last value, 5, which indicates that the administrator does not want to receive any notification, either for minor or major errors.

![](https://2879814194-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fenglish-documentation-for-prestashop-1-7%2F-MD-wQcGVavHD0kqThCr%2F-MD-zRwMuAgIbjevi5z6%2F23789888.png?generation=1595597001857016\&alt=media)

The error logging tool enables you to receive an email notification when an error occurs. Notifications are sent to the shop owner's email address, and you can configure the degree of importance at which you should start receiving such e-mails:

* "1" if you want to know about everything, even the tiniest information.
* "3" if you only want to know about issues (errors and major issues).
* "4" if you only want to keep the major issues.
* "5" is the default, meaning that no notification is sent.


---

# 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.prestashop-project.org/1.7-documentation/user-guide/configuring-shop/advanced-parameters/logs.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.
