diff --git a/logging/monolog_email.rst b/logging/monolog_email.rst index c7c4f773351..701e8bb14c6 100644 --- a/logging/monolog_email.rst +++ b/logging/monolog_email.rst @@ -142,6 +142,43 @@ then passes them onto the nested handler in one go, but only if the records are unique over a given period of time (60 seconds by default). If the records are duplicates they are simply discarded. Adding this handler reduces the amount of notifications to a manageable level, specially in critical failure scenarios. +You can adjust the time period: + +.. configuration-block:: + + .. code-block:: yaml + + # app/config/config_prod.yml + monolog: + handlers: + # ... + deduplicated: + type: deduplication + # the time in seconds during which duplicate entries are discarded (default: 60) + time: 10 + handler: swift + + .. code-block:: xml + + + + + + .. code-block:: php + + // app/config/config_prod.php + $container->loadFromExtension('monolog', array( + 'handlers' => array( + // ... + 'deduplicated' => array( + 'type' => 'deduplication', + // the time in seconds during which duplicate entries are discarded (default: 60) + 'time' => 10, + 'handler' => 'swift', + ) The messages are then passed to the ``swift`` handler. This is the handler that actually deals with emailing you the error. The settings for this are