Skip to content

Commit 17cb416

Browse files
committed
Update configuration format to support URL blacklist
1 parent c9f6ee5 commit 17cb416

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

logging/monolog_exclude_http_codes.rst

Lines 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy