             var purchaseAmount:Double = (parameters["purchaseAmount"] as? Double)!;
             var currencyCode:String = (parameters["currencyCode"] as? String)!;
             self.fbAppEvents.logPurchase(purchaseAmount, currencyCode);
-            //Mettre un carlog
+            cargo.logger.logParamSetWithSuccess("purchaseAmount", value: purchaseAmount, handler: self);
+            cargo.logger.logParamSetWithSuccess("currencyCode", value: currencyCode, handler: self);
+            
         }
         else {
-            //Mettre un carlog
-            //NSLog(@"Cargo FacebookHandler : in purchase() missing at least one of the parameters. The purchase hasn't been registered");
+            cargo.logger.logMissingParam("purchaseAmount OR currencyCode", methodName: "purchase", handler: self);
         }
     }
     

     */
    func activateApp(){
        self.fbAppEvents.activateApp();
        //Mettre un carlog
    }
    
    /**

                
                if(params.count>0){
                    self.fbAppEvents.logEvent(eventName, valueToSum, params);
                    cargo.logger.logParamSetWithSuccess(EVENT_NAME, value: eventName, handler: self);
                    cargo.logger.logParamSetWithSuccess("valueToSum", value: valueToSum, handler: self);
                    cargo.logger.logParamSetWithSuccess("params", value: params, handler: self);
                }
                else{
                    self.fbAppEvents.logEvent(eventName, valueToSum);
                    cargo.logger.logParamSetWithSuccess(EVENT_NAME, value: eventName, handler: self);
                    cargo.logger.logParamSetWithSuccess("valueToSum", value: valueToSum, handler: self);
                }
            }
            else{
                if(params.count>0){
                    self.fbAppEvents.logEvent(eventName, params);
                    cargo.logger.logParamSetWithSuccess(EVENT_NAME, value: eventName, handler: self);
                    cargo.logger.logParamSetWithSuccess("params", value: params, handler: self);
                }
                else{
                    self.fbAppEvents.logEvent(eventName);
                    cargo.logger.logParamSetWithSuccess(EVENT_NAME, value: eventName, handler: self);
                }
            }
        }
