<?php
/**
 * ロガー
 *
 * @package CF7MasterPro\Helpers
 */

namespace CF7MasterPro\Helpers;

defined( 'ABSPATH' ) || exit;

class Logger {
	public static function log( $message, $level = 'info' ) {
		if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
			error_log( '[CF7MP][' . $level . '] ' . $message ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log -- Debug-only logging gated behind WP_DEBUG.
		}
	}
}
