# Configure Level of Logging and Errors

## Configure Error Messages to Display After Installation

It is recommended that sites running on production environments do not display any errors.

Navigate to **Administration \ Configuration \ Development \ Logging and errors**

<figure><img src="https://1551857219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8dBDWQAT3IcHFm6Y1A3%2Fuploads%2FCTzFTJO4FszIcnFbmuBF%2FLogging-and-errors-varbase10c1.png?alt=media&#x26;token=8a1f5a72-6d14-412b-98ba-e1d91453d939" alt=""><figcaption><p>Logging and Errors Configurations</p></figcaption></figure>

Allows developers to set various options for logging errors and messages to a database or Syslog. They can choose the level of detail they want to keep in the log, and even set a unique identity for your site in the Syslog messages. The page also explains the different logging facilities and formats available.

{% hint style="danger" %}
Make sure that the Error messages to display is sat as None on production.
{% endhint %}

## Set System Error Logging Level with Drush

For `"None"` run the following command.

```
./bin/drush config:set system.logging error_level hide --yes
```

For `"Errors and warnings"` run the following command.

```
./bin/drush config:set system.logging error_level some --yes
```

For `"All messages"` run the following command.

```
./bin/drush config:set system.logging error_level all --yes
```

For `"All messages, with backtrace information"` run the following command.

```
./bin/drush config:set system.logging error_level verbose --yes
```

## Configure Level of Logging and Errors on installation

While installing Varbase, the installer will have an installation step for Development Tools

<figure><img src="https://1551857219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8dBDWQAT3IcHFm6Y1A3%2Fuploads%2FvyJhTMfGDAPLnkUabxUx%2Fvarbase10-install--development-tools.png?alt=media&#x26;token=c45a65ab-4354-4de6-8bda-70b4a0fac489" alt=""><figcaption><p>Varbase Development Tools</p></figcaption></figure>

On checking the "Install Development Tools" checkbox, more options will show up to configure on installation.

<figure><img src="https://1551857219-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fd8dBDWQAT3IcHFm6Y1A3%2Fuploads%2FsYuJsGDoLW0DV7hIy9Ly%2Fvarbase10-install--development-tools-open.png?alt=media&#x26;token=81f56f2b-3eae-4b56-b2ab-6ac425148c98" alt=""><figcaption><p>Varbase Development Tools Open - Configure Level of Logging and Errors on installation </p></figcaption></figure>

Keep Error message to display as ***None***, When installing a **Varbase Demo** site.

Change to other options when starting development for a project.

{% hint style="success" %}
Recommended to use **`"All messages, with backtrace information"`**` ``in`` `***`local development`*****`,`**` ``to keep track and trace of all errors and warnings.`&#x20;
{% endhint %}

{% hint style="warning" %}
It is recommended that sites running on **production** environments ***DO NOT DISPLAY*** any errors.
{% endhint %}
