log($level, $message, $context); } public static function debug(string $message, array $context = []): void { if (! Options::getBool(Options::DEBUG_LOGGING)) { return; } self::log(\WC_Log_Levels::DEBUG, $message, $context); } public static function info(string $message, array $context = []): void { self::log(\WC_Log_Levels::INFO, $message, $context); } public static function warning(string $message, array $context = []): void { self::log(\WC_Log_Levels::WARNING, $message, $context); } public static function error(string $message, array $context = []): void { self::log(\WC_Log_Levels::ERROR, $message, $context); } }