News:

Support the VirtueMart project and become a member

Main Menu

Notify fix and logging

Started by tnine, April 18, 2006, 16:00:45 PM

Previous topic - Next topic

tnine

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

Di

I also need to log to a file

Thanks

jdoyle

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