Cartflows_WC_Logger::__construct( array $handlers = null, string $threshold = null )

Constructor for the logger.


Parameters

$handlers

(array) (Optional) Array of log handlers. If $handlers is not provided, the filter 'woocommerce_register_log_handlers' will be used to define the handlers. If $handlers is provided, the filter will not be applied and the handlers will be used directly.

Default value: null

$threshold

(string) (Optional) Define an explicit threshold. May be configured via WC_LOG_THRESHOLD. By default, all logs will be processed.

Default value: null


Source

File: classes/logger/class-cartflows-wc-logger.php