Skip to content

Instantly share code, notes, and snippets.

@xabbuh
Last active December 28, 2015 19:19
Show Gist options
  • Save xabbuh/7549294 to your computer and use it in GitHub Desktop.
Save xabbuh/7549294 to your computer and use it in GitHub Desktop.
The first example (config1.xml) works, the second (config2.xml) doesn't.
<!-- app/config/config_prod.xml -->
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:monolog="http://symfony.com/schema/dic/monolog"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/monolog
http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"
>
<monolog:config>
<monolog:handler name="symfony" type="stream" path="/var/log/symfony.log">
<monolog:channels type="exclusive">
<monolog:channel>!doctrine</monolog:channel>
</monolog:channels>
</monolog:handler>
</monolog:config>
</container>
<!-- app/config/config_prod.xml -->
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:monolog="http://symfony.com/schema/dic/monolog"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/monolog
http://symfony.com/schema/dic/monolog/monolog-1.0.xsd"
>
<monolog:config>
<monolog:handler name="symfony" type="stream" path="/var/log/symfony.log">
<monolog:channels type="exclusive">
<monolog:channel>doctrine</monolog:channel>
</monolog:channels>
</monolog:handler>
</monolog:config>
</container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment