Sorry for this Thread, but I really can't figure out, how to configure Symfony2 to do what I like it to do :-) I just don't get the 'big picture'.
I would like to create an own log-channel for some central things my bundle. This Channel should normally be written to an own file in dev, for prod it should be written to prod.log or be supressed (one of it or switchable by config).
I got the feeling, that the solution is shared over many docs and tutorials.
- Where and how do I define that channel?
- The handler is defined in the config.yml, right?
- Do I have to implement an own handler-class?
Sorry for this very unspecific question.
Bonus-question: 4. When logging should be possible outside of a controller (access to container), than I have to implement a service, right?