<?php

if (!defined('ABSPATH')) {
	exit;
}

class R123_WC_Logger {
	public static function log(string $level, string $message, array $context = []): void {
		if (function_exists('wc_get_logger')) {
			$logger = wc_get_logger();
			$logger->log($level, $message . ' ' . wp_json_encode($context), ['source' => 'racun123-wc']);
		}
	}
}
