Skip to content

Commit

Permalink
bug #4147 [Cookbook][Logging] add missing Monolog handler type in XML…
Browse files Browse the repository at this point in the history
… config (xabbuh)

This PR was merged into the 2.3 branch.

Discussion
----------

[Cookbook][Logging] add missing Monolog handler type in XML config

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets |

Omitting the type of a handler leads to an error:

> Symfony\Component\Config\Definition\Exception\InvalidConfigurationException: The child node "type" at path "monolog.handlers.swift" must be configured.

Commits
-------

dc33b0c add missing Monolog handler type in XML config
  • Loading branch information
weaverryan committed Aug 21, 2014
2 parents 041105c + dc33b0c commit 2c93aa5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cookbook/logging/monolog_email.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ it is broken down.
/>
<monolog:handler
name="swift"
type="swift_mailer"
from-email="error@example.com"
to-email="error@example.com"
subject="An Error Occurred!"
Expand Down

0 comments on commit 2c93aa5

Please sign in to comment.