I\'m pretty new to Symfony2, and I\'m looking for a way to log SQL queries (including timings) to the same log file as the rest of my application.
From what I can determ
Full example of config:
config/packages/dev/doctrine.yaml:
config/packages/dev/doctrine.yaml
doctrine: dbal: connections: default: logging: true
If you still don't have monolog, install it: composer require symfony/monolog-bundle and you should start getting all SQL queries in the log file: var/log/dev.log
composer require symfony/monolog-bundle
var/log/dev.log