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

Logging and Errors Configurations

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.

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

Varbase Development Tools

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

Varbase Development Tools Open - Configure Level of Logging and Errors on installation

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

Change to other options when starting development for a project.

Last updated