Automattic\WooCommerce\EmailEditor\Engine\Logger
Default_Email_Editor_Logger::__construct
Constructor.
Method of the class: Default_Email_Editor_Logger{}
No Hooks.
Returns
null. Nothing (null).
Usage
$Default_Email_Editor_Logger = new Default_Email_Editor_Logger(); $Default_Email_Editor_Logger->__construct();
Default_Email_Editor_Logger::__construct() Default Email Editor Logger:: construct code WC 10.5.0
public function __construct() {
if ( defined( 'WP_DEBUG_LOG' ) ) {
if ( true === WP_DEBUG_LOG ) {
$this->log_file = WP_CONTENT_DIR . '/debug.log';
} elseif ( is_string( WP_DEBUG_LOG ) && ! empty( WP_DEBUG_LOG ) ) {
$this->log_file = WP_DEBUG_LOG;
} else {
$this->log_file = '';
}
} else {
$this->log_file = '';
}
}