0

We can do db logging via

<preference for="Magento\Framework\DB\LoggerInterface" type="Magento\Framework\DB\Logger\File" />

But it's Module Wise.

How can we do whole Magento wise (Fronend/Backend) or display all queries at end of page?

5
  • where did you add this preference? It should work if you add this in the global di.xml in one of your modules
    – Marius
    May 8, 2017 at 8:41
  • In my custom module @Marius
    – Jackson
    May 8, 2017 at 8:43
  • it should work like that. The preferences are global, not module specific.
    – Marius
    May 8, 2017 at 8:44
  • So if I only add in my custom Module then it works for whole Magento?
    – Jackson
    May 8, 2017 at 8:46
  • It should. Check this: magento.stackexchange.com/q/107361/146
    – Marius
    May 8, 2017 at 8:47

0

Browse other questions tagged or ask your own question.