Skip to content

Document spool type #2742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions cookbook/logging/monolog_email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ It then logs everything including messages below the action level. The
``critical`` level is only triggered for 5xx HTTP code errors. The ``handler``
setting means that the output is then passed onto the ``buffered`` handler.

.. tip::

When the application crashes with an error 5xx, the swiftmailer memory spool
will not be flushed and no mails will be sent. You need to comment out the
the ``spool: { type: memory }`` in your ``config.yml`` so the mails will be
sent immediately.

.. tip::

If you want both 400 level and 500 level errors to trigger an email,
Expand Down