News:

Support the VirtueMart project and become a member

Main Menu

vmLogger doesn't work as described?

Started by vigier, September 09, 2012, 02:03:38 AM

Previous topic - Next topic

vigier

Hi,

I'd like to use vmLogger in VM 2.0.10. In calculationh.php I edited the code at line 1247:

public function calculateModificators(&$product, $variants) {
global $vmLogger;
$vmLogger->notice( 'My Notice to the user' );

$modificatorSum = 0.0;
//MarkerVarMods

I have debugmode on.
The error: "Fatal error: Call to a member function notice() on a non-object in C:\wamp\www\Joomla\administrator\components\com_virtuemart\helpers\calculationh.php on line 1249"

http://virtuemart.net/documentation/Developer_Manual/vmLogger.html says this is the way to do it... why doesn't it work?

Kind regards, Vigier

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

vigier

I first used the vmDebug, but that didn't work also (I just displayed the standard 6 lines with memory usage and stuff), that's why I tried this. Strange thing: I just restarted WampServer and Firefox and now the vmDebug works again...
Sorry for bothering you!

Regards, Vigier