I want to show only warnings and errors but I want to turn-off notices. How can I turn off notices?
In my settings.php, I have this code:
$config['system.logging']['error_level'] = 'verbose';
What value should I put there?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI want to show only warnings and errors but I want to turn-off notices. How can I turn off notices?
In my settings.php, I have this code:
$config['system.logging']['error_level'] = 'verbose';
What value should I put there?
This configuration aligns with the options at Manage > Configuration > Development > Logging and Errors (/admin/config/development/logging).
There are 4 error level options available. The levels with their corresponding values, i.e. the actual value for $config['system.logging']['error_level']
are:
hide
some
all
verbose
For example, to only display errors and warnings, replace your current line with:
$config['system.logging']['error_level'] = 'some';