コード例 #1
0
ファイル: Handler.php プロジェクト: empewe/magento-api-logger
 public function __call($function, $args = array())
 {
     $response = parent::__call($function, $args);
     if ($this->boolLogActive) {
         $log = "SOAP Method (V2): {$function}";
         $log .= "\ncalled from {$_SERVER['REMOTE_ADDR']}";
         $log .= "\nParameters: " . print_r($args, true);
         if ($this->boolLogVerbose) {
             $log .= "\nResponse: " . print_r($response, true);
         }
         Mage::log($log, null, $this->strLogfile, $this->forceLog);
     }
     return $response;
 }