File tree 2 files changed +12
-1
lines changed
Filter options
2 files changed +12
-1
lines changed
Original file line number Diff line number Diff line change @@ -341,9 +341,14 @@ Learn more
341
341
logging/channels_handlers
342
342
logging/formatter
343
343
logging/processors
344
- logging/monolog_regex_based_excludes
344
+ logging/monolog_exclude_http_codes
345
345
logging/monolog_console
346
346
347
+ .. toctree ::
348
+ :hidden:
349
+
350
+ logging/monolog_regex_based_excludes
351
+
347
352
.. _Monolog : https://github.com/Seldaek/monolog
348
353
.. _LoggerInterface : https://github.com/php-fig/log/blob/master/Psr/Log/LoggerInterface.php
349
354
.. _`logrotate` : https://github.com/logrotate/logrotate
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
+ .. tip ::
10
+
11
+ Read :doc: `/logging/monolog_exclude_http_codes ` to learn about a similar
12
+ but more generic feature that allows to exclude logs for any HTTP status
13
+ code and not only 404 errors.
14
+
9
15
Sometimes your logs become flooded with unwanted 404 HTTP errors, for example,
10
16
when an attacker scans your app for some well-known application paths (e.g.
11
17
`/phpmyadmin `). When using a ``fingers_crossed `` handler, you can exclude
You can’t perform that action at this time.
0 commit comments