cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9 Obsever testing failed - Mage::log not generated

Magento 1.9 Obsever testing failed - Mage::log not generated

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

2 REPLIES 2

Re: Magento 1.9 Obsever test failed

Hi @Aveeva,

In your module codePool should be "local" instead of localhost.

<?xml version="1.0"?>
<config>
<modules>
<Gta_ExtraFeesRemove>
<codePool>local</codePool>
<active>true</active>
</Gta_ExtraFeesRemove>
</modules>
</config>

I hope it will work for you!

Re: Magento 1.9 Obsever test failed

Still no luck