File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 6
6
How to Configure Monolog to Exclude 404 Errors from the Log
7
7
===========================================================
8
8
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,
10
15
when an attacker scans your app for some well-known application paths (e.g.
11
16
`/phpmyadmin `). When using a ``fingers_crossed `` handler, you can exclude
12
17
logging these 404 errors based on a regular expression in the MonologBundle
@@ -60,8 +65,3 @@ configuration:
60
65
),
61
66
),
62
67
));
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.
You can’t perform that action at this time.
0 commit comments