Skip to content

Commit bccb080

Browse files
committed
feature symfony#4140 [Cookbook][Logging] document multiple recipients in XML configs (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- [Cookbook][Logging] document multiple recipients in XML configs | Q | A | ------------- | --- | Doc fix? | no | New docs? | yes (symfony/monolog-bundle#91) | Applies to | all | Fixed tickets | symfony#3940, symfony#4135 Commits ------- 37ab23d document multiple recipients in XML configs
2 parents 7a6e3d1 + 37ab23d commit bccb080

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
@@ -58,10 +58,18 @@ it is broken down.
5858
name="swift"
5959
type="swift_mailer"
6060
from-email="error@example.com"
61-
to-email="error@example.com"
6261
subject="An Error Occurred!"
63-
level="debug"
64-
/>
62+
level="debug">
63+
64+
<monolog:to-email>error@example.com</monolog:to-email>
65+
66+
<!-- or multiple to-email elements -->
67+
<!--
68+
<monolog:to-email>dev1@example.com</monolog:to-email>
69+
<monolog:to-email>dev2@example.com</monolog:to-email>
70+
...
71+
-->
72+
</monolog:handler>
6573
</monolog:config>
6674
</container>
6775

0 commit comments

Comments
 (0)