Skip to content

Commit bd84809

Browse files
ThomasLandauerjaviereguiluz
authored andcommitted
Updating excluded_404s to excluded_http_codes
The syntaxes are taken from https://symfony.com/doc/current/logging/monolog_exclude_http_codes.html
1 parent 91653b6 commit bd84809

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

logging/monolog_email.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ it is broken down.
2828
action_level: critical
2929
# to also log 400 level errors (but not 404's):
3030
# action_level: error
31-
# excluded_404s:
32-
# - ^/
31+
# excluded_http_codes: [404]
3332
handler: deduplicated
3433
deduplicated:
3534
type: deduplication
@@ -62,7 +61,7 @@ it is broken down.
6261
to also log 400 level errors (but not 404's):
6362
action-level="error"
6463
And add this child inside this monolog:handler
65-
<monolog:excluded-404>^/</monolog:excluded-404>
64+
<monolog:excluded-http-code code="404"/>
6665
-->
6766
<monolog:handler
6867
name="main"
@@ -107,9 +106,7 @@ it is broken down.
107106
'action_level' => 'critical',
108107
// to also log 400 level errors (but not 404's):
109108
// 'action_level' => 'error',
110-
// 'excluded_404s' => [
111-
// '^/',
112-
// ],
109+
// 'excluded_http_codes' => [404],
113110
'handler' => 'deduplicated',
114111
],
115112
'deduplicated' => [

0 commit comments

Comments
 (0)