symfony/symfony — pull request #3103 by alexandresalome (2012-01-12 17:16:09+00:00)
Title: [2.1][MonologBundle] Setting a custom mapping between channels and handlers

```
Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
```

**TODO**
- Add documentation when stabilized the feature
- Decide blacklist/whitelist
- Discuss about parameter between container extension + compiler pass

As discussed with @Seldaek and @stof, it would be great to have a
feature to say "I want to connect this channel(s) to this handler(s)".

The typical case is the "notification" log: I create a notification
service, and I want a dedicated log for it. To do so, the process would
be:

* I create a custom channel
* I create a custom handler
* I join them

This commit is a proof-of-concept to start the discussion.

For example:

```
handlers:
main:
type: file
# ...
channels: [ doctrine, routing, ... ]

notification:
type: file
# ...
channels: [ notification ]
```