How To Enable Error And Exception Logging For Magento 2

How to enable error log and display error on my Magento 2 site, right now its only shows blank page or 500 internal server error

From pub/errors folder

rename file local.xml.sample to local.xml

Also you can enable “display_errors” from app/bootstrap.php

change

#ini_set('display_errors', 1);

to

ini_set('display_errors', 1);
0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments