8000 document multiple recipients in XML configs · symfony/symfony-docs@37ab23d · GitHub
[go: up one dir, main page]

Skip to content

Commit 37ab23d

Browse files
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.

Original file line numberDiff line numberDiff line change
@@ -57,10 +57,18 @@ it is broken down.
5757
<monolog:handler
5858
name="swift"
5959
from-email="error@example.com"
60-
to-email="error@example.com"
6160
subject="An Error Occurred!"
62-
level="debug"
63-
/>
61+
level="debug">
62+
63+
<monolog:to-email>error@example.com</monolog:to-email>
64+
65+
<!-- or multiple to-email elements -->
66+
<!--
67+
<monolog:to-email>dev1@example.com</monolog:to-email>
68+
<monolog:to-email>dev2@example.com</monolog:to-email>
69+
...
70+
-->
71+
</monolog:handler>
6472
</monolog:config>
6573
</container>
6674