In Magento 2.x as well as Magento 1.x there is an option to enable database logging. It allows to profile all queries in the system and perform optimization if necessary. In this article I will show you how to enable database logging for MySQL adapter in Magento 2.
Magento 2 Framework provides Logger component. This component is used across Magento 2 modules and framework as a mechanism to log errors and system information into files. You are aware of well-known
debug.log files which are located in the