Skip to content

Commit 6ec097d

Browse files
committed
[symfony#3203] Minor tweaks to new 404 logging entry
1 parent aea6533 commit 6ec097d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cookbook/logging/monolog_regex_based_excludes.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,12 @@
66
How to Configure Monolog to Exclude 404 Errors from the Log
77
===========================================================
88

9-
Sometimes you get your logs flooded with unwanted 404 HTTP errors, for example,
9+
.. versionadded:: 2.4
10+
This feature was introduced to the MonologBundle in version 2.4, which
11+
was first packaged with Symfony at version 2.4. However, the 2.4 version
12+
of the MonologBundle is also compatible with Symfony 2.3.
13+
14+
Sometimes your logs become flooded with unwanted 404 HTTP errors, for example,
1015
when an attacker scans your app for some well-known application paths (e.g.
1116
`/phpmyadmin`). When using a ``fingers_crossed`` handler, you can exclude
1217
logging these 404 errors based on a regular expression in the MonologBundle
@@ -60,8 +65,3 @@ configuration:
6065
),
6166
),
6267
));
63-
64-
.. note::
65-
66-
To be able to use ``excluded_404s`` option you need to update your version
67-
of the MonologBundle to 2.4.

0 commit comments

Comments
 (0)