Unity debug.log not working

broken image

Note that this the admin panel normally hides this in production mode, so only use this if you're testing. If production mode is enabled (as displayed by php bin/magento deploy:mode:show) then the GUI option will not be available. If this appears, flush the Magento cache with the link it gives you.

broken image

Setting this to 'Yes' will cause debug information to be logged to var/log/debug.log in your Magento application directory.Īfter saving the setting, you may get a prompt at the top of the page asking you to flush the cache. In the Magento admin panel, go to 'Stores' -> 'Configuration' -> 'Advanced' -> 'Developer' -> 'Debug' -> 'Log to File'. If it says 'production', only the command line method will work.

broken image

In Magento 2.2, debugging can be enabled from either the GUI admin panel or from the command line.įirst, check which mode your site is in by opening your Magento application directory (the one with index.php) in the shell. Php bin/magento setup:config:set -enable-debug-logging=true & php bin/magento cache:flush Enabling the debug log on Magento 2.2

broken image

As described in the DevDocs article here, run this command: