VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Development Projects, Modifications, Hacks & Tweaks. VM1.1 => Payment Modules => Topic started by: tnine on April 18, 2006, 16:00:45 PM

Title: Notify fix and logging
Post by: tnine on April 18, 2006, 16:00:45 PM
I will be attempting to fix the notify script to correctly change the product status to pending.  I would like to be able to re-use the virtuemart logging system for debugging.  It seems that the $vmLogger appears to the user, but do messages logged to the $vmLogger->debug log get written to any file?  Since the call is asynchronous from paypal,  I need to log to a log file, logging to the console will not work since I will not be making the http request.

Thanks,
Todd
Title: Re: Notify fix and logging
Post by: Di on June 19, 2007, 18:01:29 PM
I also need to log to a file

Thanks
Title: Re: Notify fix and logging
Post by: jdoyle on August 07, 2007, 21:25:27 PM
Hi - to log to the php error log (php_error.log)

change line 102 of /components/com_virtuemart/virtuemart_parser.php

$vmLogger = &vmLog::singleton('display', '', '', $vmLoggerConf, PEAR_LOG_TIP);
to
$vmLogger = &vmLog::singleton('error_log', '', '', $vmLoggerConf, PEAR_LOG_TIP);

and comment out / remove line 317

$vmLogger->printLog();
to
// $vmLogger->printLog();

Regards
John