From bd84809a4e1b780698ceedab4eb9b754d12a3ef9 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Fri, 25 Jun 2021 00:11:04 +0200 Subject: [PATCH] Updating `excluded_404s` to `excluded_http_codes` The syntaxes are taken from https://symfony.com/doc/current/logging/monolog_exclude_http_codes.html --- logging/monolog_email.rst | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/logging/monolog_email.rst b/logging/monolog_email.rst index 7822de7c58c..f68f8c3237e 100644 --- a/logging/monolog_email.rst +++ b/logging/monolog_email.rst @@ -28,8 +28,7 @@ it is broken down. action_level: critical # to also log 400 level errors (but not 404's): # action_level: error - # excluded_404s: - # - ^/ + # excluded_http_codes: [404] handler: deduplicated deduplicated: type: deduplication @@ -62,7 +61,7 @@ it is broken down. to also log 400 level errors (but not 404's): action-level="error" And add this child inside this monolog:handler - ^/ + --> 'critical', // to also log 400 level errors (but not 404's): // 'action_level' => 'error', - // 'excluded_404s' => [ - // '^/', - // ], + // 'excluded_http_codes' => [404], 'handler' => 'deduplicated', ], 'deduplicated' => [