In Symfony2 logs SQL queries log in XXX.log by default. To check slow query i would like to have log query + its execution time as well. I have created separate log file for doctrine log to do this i need following setting in my config.yml e.g
monolog:
handlers:
doctrine:
action_level: debug
type: stream
path: %kernel.logs_dir%/%kernel.environment%_doctrine.log
channels: doctrine
The doctrine query is logging in my given .log file but the execution time of each query is not there. Please note: i want generic solution, so the logger will log my all queries + time