Permalink
Browse files

bug #4147 [Cookbook][Logging] add missing Monolog handler type in XML…

… 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 2c93aa52114f62cb59053340b91998630316465d
Showing with 1 addition and 0 deletions.
  1. +1 −0 cookbook/logging/monolog_email.rst
@@ -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!"

0 comments on commit 2c93aa5

Please sign in to comment.