Debugging

Using WC_Logger Class for Better Debugging in WooCommerce

In this tutorial I am going to dive deep into how you can use WooCommerce logs when developing your own extension for it for example.

Of course you can always add define( 'WP_DEBUG_LOG', true ) into your wp-config.php file, then use error_log() function to add any debug information and then check the log file in wp-content/debug.log. But if there is a better way, why not use it?