We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e413af commit 74b6cf6Copy full SHA for 74b6cf6
logging/monolog_exclude_http_codes.rst
@@ -52,12 +52,14 @@ logging these HTTP codes based on the MonologBundle configuration:
52
use Symfony\Config\MonologConfig;
53
54
return static function (MonologConfig $monolog) {
55
- $monolog->handler('main')
+ $mainHandler = $monolog->handler('main')
56
// ...
57
->type('fingers_crossed')
58
->handler(...)
59
- ->excludedHttpCode([403, 404])
60
;
+
61
+ $mainHandler->excludedHttpCode()->code(403);
62
+ $mainHandler->excludedHttpCode()->code(404);
63
};
64
65
.. caution::
0 commit comments