In symfony2 is there a way to enable SQL logging programmaticaly, I mean, change the doctrine:dbal:logging item in config.yml at runtime ?
2
-
1Is this what you mean?Roman Kliuchko– Roman Kliuchko2014-12-02 22:19:45 +00:00Commented Dec 2, 2014 at 22:19
-
well actually no. I asked for a way to programmatically change the setting in config.yml. But I didn't knew this functionality. Very interesting and in the end I can do what I want. So if you want put it as an answer and I'll accept it.Nelson Teixeira– Nelson Teixeira2014-12-02 22:33:38 +00:00Commented Dec 2, 2014 at 22:33
Add a comment
|
1 Answer
As discussed in comments, solution is described at http://vvv.tobiassjosten.net/symfony/logging-doctrine-queries-in-symfony2/