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 17cb416

Browse filesBrowse files
committed
Update configuration format to support URL blacklist
1 parent c9f6ee5 commit 17cb416
Copy full SHA for 17cb416

File tree

1 file changed

+6
-5
lines changed
Filter options

1 file changed

+6
-5
lines changed

‎logging/monolog_exclude_http_codes.rst

Copy file name to clipboardExpand all lines: logging/monolog_exclude_http_codes.rst
+6-5Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ logging these HTTP codes based on the MonologBundle configuration:
2121
# ...
2222
type: fingers_crossed
2323
handler: ...
24-
excluded_http_codes:
25-
- 403
26-
- 404
24+
excluded_http_codes: [403, 404, { 400: ['^/foo', '^/bar'] }]
2725
2826
.. code-block:: xml
2927
@@ -39,8 +37,11 @@ logging these HTTP codes based on the MonologBundle configuration:
3937
<monolog:config>
4038
<monolog:handler type="fingers_crossed" name="main" handler="...">
4139
<!-- ... -->
42-
<monolog:excluded-http-code>403</monolog:excluded-http-code>
43-
<monolog:excluded-http-code>404</monolog:excluded-http-code>
40+
<monolog:excluded-http-code code="403">
41+
<monolog:url>^/foo</monolog:url>
42+
<monolog:url>^/bar</monolog:url>
43+
</monolog:excluded-http-code>
44+
<monolog:excluded-http-code code="404" />
4445
</monolog:handler>
4546
</monolog:config>
4647
</container>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.