[ ] Implement a dedicated class for the logger (take almost 100% inspiration from the file includes/class-wc-stripe-logger.php from the
WooCommerce Stripe Payment Gateway plugin
Perform enabled/disabled checks inside this class instead of the places performing the logging (already implemented in example)
Take inspiration from the plugin WooCommerce Stripe Payment Gateway:
Tasks:
includes/class-wc-stripe-logger.php
from the WooCommerce Stripe Payment Gateway pluginExample from plugin
includes/class-wc-stripe-logger.php