HEX
Server: Apache
System: Linux sxb1plzcpnl440011.prod.sxb1.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: xfp2mtarcm67 (7705020)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //home/xfp2mtarcm67/www/wp-content/plugins/facebook-for-woocommerce/includes/Jobs/LoggingTrait.php
<?php
// phpcs:ignoreFile

namespace SkyVerge\WooCommerce\Facebook\Jobs;

use WC_Facebookcommerce;

defined( 'ABSPATH' ) || exit;

/**
 * Trait LoggingTrait
 *
 * Logging helper trait for jobs.
 *
 * @since 2.5.0
 */
trait LoggingTrait {

	/**
	 * Get the name/slug of the job.
	 *
	 * @return string
	 */
	abstract public function get_name(): string;

	/**
	 * Write a log entry using the plugin's logger.
	 *
	 * @param string $message
	 */
	protected function log( string $message ) {
		facebook_for_woocommerce()->log(
			$message,
			sprintf( '%s_%s', WC_Facebookcommerce::PLUGIN_ID, $this->get_name() )
		);
	}


}