PHP 8.2.31
Preview: LoggingTrait.php Size: 610 B
/home/nshryvcy/himaltourism.com/wp-content/plugins/facebook-for-woocommerce/includes/Jobs/LoggingTrait.php

<?php
// phpcs:ignoreFile

namespace 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() )
		);
	}
}

Directory Contents

Dirs: 0 × Files: 7

Name Size Perms Modified Actions
1.05 KB lrw-r--r-- 2025-01-05 05:33:50
Edit Download
1.75 KB lrw-r--r-- 2025-01-05 05:33:50
Edit Download
3.12 KB lrw-r--r-- 2025-01-05 05:33:50
Edit Download
4.01 KB lrw-r--r-- 2025-01-05 05:33:50
Edit Download
1.23 KB lrw-r--r-- 2025-01-05 05:33:50
Edit Download
610 B lrw-r--r-- 2025-01-05 05:33:50
Edit Download
2.85 KB lrw-r--r-- 2025-01-05 05:33:50
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).