Skip to content

Commit 30e993d

Browse files
xabbuhdaFish
authored and
daFish
committed
document multiple recipients in XML configs
Adds an example on how to configure multiple recipients in Monolog for sending log entries as e-mails.
1 parent 9b0cef4 commit 30e993d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

cookbook/logging/monolog_email.rst

+11-3
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,18 @@ get logged on the server as well as the emails being sent:
176176
<monolog:handler
177177
name="swift"
178178
from-email="error@example.com"
179-
to-email="error@example.com"
180179
subject="An Error Occurred!"
181-
level="debug"
182-
/>
180+
level="debug">
181+
182+
<monolog:to-email>error@example.com</monolog:to-email>
183+
184+
<!-- or multiple to-email elements -->
185+
<!--
186+
<monolog:to-email>dev1@example.com</monolog:to-email>
187+
<monolog:to-email>dev2@example.com</monolog:to-email>
188+
...
189+
-->
190+
</monolog:handler>
183191
</monolog:config>
184192
</container>
185193

0 commit comments

Comments
 (0)