In symfony2 is there a way to enable SQL logging programmaticaly, I mean, change the doctrine:dbal:logging item in config.yml at runtime ?
As discussed in comments, solution is described at http://vvv.tobiassjosten.net/symfony/logging-doctrine-queries-in-symfony2/