log file not generated at var/log location
My observer :
<?xml version="1.0"?> <config> <modules> <Gta_ExtraFeesRemove> <codePool>local</codePool> <active>true</active> </Gta_ExtraFeesRemove> </modules> </config>
<?xml version="1.0"?> <config> <modules> <Gta_ExtraFeesRemove> <version>1.0.0</version> </Gta_ExtraFeesRemove> </modules> <global> <models> <gta_extrafeesremove> <class>Gta_ExtraFeesRemove_Model</class> </gta_extrafeesremove> </models> </global> <frontend> <events> <salesrule_rule_save_before> <observers> <Gta_ExtraFeesRemove_Model_Observer> <type>singleton</type> <class>Gta_ExtraFeesRemove_Model_Observer</class> <method>beforecheckout</method> </Gta_ExtraFeesRemove_Model_Observer> </observers> </salesrule_rule_save_before> </events> </frontend> </config>
observer :
<?php class Gta_ExtraFeesRemove_Model_Observer { public function beforecheckout(Varien_Enent_Observer $Observer) { $event = $observer->getEvent(); Mage::log($event->debug()); Mage::log('Hy observer called', null, 'logfile.log'); } } ?>
log file not generated at var/log location
Still no luck