0

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
  • 1
    Is this what you mean? Commented 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. Commented Dec 2, 2014 at 22:33

1 Answer 1

1

As discussed in comments, solution is described at http://vvv.tobiassjosten.net/symfony/logging-doctrine-queries-in-symfony2/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.