How to log custom plugin error to debug.log file

U need to also define WP_DEBUG as true

 // Enable WP_DEBUG mode
define('WP_DEBUG', true);

// Enable Debug logging to the /wp-content/debug.log file
define('WP_DEBUG_LOG', true);

It will may help you.