Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitbd84809

Browse files
ThomasLandauerjaviereguiluz
authored andcommitted
Updatingexcluded_404s toexcluded_http_codes
The syntaxes are taken fromhttps://symfony.com/doc/current/logging/monolog_exclude_http_codes.html
1 parent91653b6 commitbd84809

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)

[8]ページ先頭

©2009-2025 Movatter.jp