Skip to main content
Tweeted twitter.com/StackDrupal/status/1024626193797136384
edited title
Link
leymannx
  • 18.8k
  • 6
  • 72
  • 126

Set the effective log severity level in Drupal 8

Source Link
Eria
  • 481
  • 4
  • 16

Set the effective log severity level in Drupal 8

In a Drupal 8 site, on the page /admin/config/development/logging, I can specify if I want warnings, errors and other messages to be displayed. But either I want them displayed or not, they exist.

On this other page, admin/reports/dblog , I can see all the logs available in database.

But if my site has many visitors, Debug, Info and Notice logs are constantly inserted in the database. Which causes high charge on the database and "hides" the important logs (errors and warnings).

How can I tel Drupal "Do not insert in database any log with a severity level below WARNING" ? The equivalent of the level value we find in every logging framework.