Configuring Magento 2 is possible to generate system logs and exception logs upon any error. This is the most important tool to be utilized during the store's development stage to find any error restricting the store's performance. But it's less effective on live stores; it can only be used for short-term live stores.

How to Enable Magento Error Log