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

Skip to content
8000

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.
1 parent 4ea4dfe commit 37ab23d

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

cookbook/logging/monolog_email.rst

Lines changed: 11 additions & 3 deletions
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

0 commit comments

Comments
 (0)
0