Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 37ab23d

Browse filesBrowse 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
Copy full SHA for 37ab23d

File tree

Expand file treeCollapse file tree

1 file changed

+11
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-3
lines changed

‎cookbook/logging/monolog_email.rst

Copy file name to clipboardExpand all lines: cookbook/logging/monolog_email.rst
+11-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.