Skip to content

Commit 08ef9f8

Browse files
committed
Merge pull request #3084 from greg0ire/2.3
Revert "Removed warning about using swiftmailer handler with memory spool"
2 parents b85a9a1 + bbf53b4 commit 08ef9f8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cookbook/logging/monolog_email.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,14 @@ to and from addresses and the subject.
107107
You can combine these handlers with other handlers so that the errors still
108108
get logged on the server as well as the emails being sent:
109109

110+
.. caution::
111+
112+
The default spool setting for swiftmailer is set to ``memory``, which
113+
means that emails are sent at the very end of the request. However, this
114+
does not work with buffered logs at the moment. In order to enable emailing
115+
logs per the example below, you must comment out the ``spool: { type: memory }``
116+
line in the ``config.yml`` file.
117+
110118
.. configuration-block::
111119

112120
.. code-block:: yaml

0 commit comments

Comments
 (0)