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.
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="[email protected]"
60-
to-email="[email protected]"
6160
subject="An Error Occurred!"
62-
level="debug"
63-
/>
61+
level="debug">
62+
63+
<monolog:to-email>[email protected]</monolog:to-email>
64+
65+
<!-- or multiple to-email elements -->
66+
<!--
67+
<monolog:to-email>[email protected]</monolog:to-email>
68+
<monolog:to-email>[email protected]</monolog:to-email>
69+
...
70+
-->
71+
</monolog:handler>
6472
</monolog:config>
6573
</container>
6674

0 commit comments

Comments
 (0)