Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ac31010

Browse filesBrowse files
committed
minor #15466 [Logger] Updating excluded_404s to excluded_http_codes (ThomasLandauer)
This PR was submitted for the 5.3 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Logger] Updating `excluded_404s` to `excluded_http_codes` The syntaxes are taken from https://symfony.com/doc/current/logging/monolog_exclude_http_codes.html Commits ------- bd84809 Updating `excluded_404s` to `excluded_http_codes`
2 parents 91653b6 + bd84809 commit ac31010
Copy full SHA for ac31010

File tree

Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-6
lines changed

‎logging/monolog_email.rst

Copy file name to clipboardExpand all lines: logging/monolog_email.rst
+3-6Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.