Skip to content

Commit bccb080

Browse files
committed
feature #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 | #3940, #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

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

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy