My Custom observer :
app\etc\modules\Gta_FindPaymentGateway.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Gta_FindPaymentGateway>
<active>true</active>
<codePool>local</codePool>
</Gta_FindPaymentGateway>
</modules>
</config>
app\code\local\Gta\FindPaymentGateway\etc\config.xml
<?xml version="1.0"?>
<config>
<modules>
<Gta_FindPaymentGateway>
<version>1.0.0</version>
</Gta_FindPaymentGateway>
</modules>
<global>
<models>
<gta_findpaymentgateway>
<class>Gta_FindPaymentGateway_Model</class>
</gta_findpaymentgateway>
</models>
<events>
<sales_order_place_before>
<observers>
<Gta_FindPaymentGateway_Model_Observer>
<type>singleton</type>
<class>Gta_FindPaymentGateway_Model_Observer</class>
<method>paymenter</method>
</Gta_FindPaymentGateway_Model_Observer>
</observers>
</sales_order_place_before>
</events>
</global>
</config>
app\code\local\Gta\FindPaymentGateway\Model\Observer.php
<?php
class Gta_FindPaymentGateway_Model_Observer
{
public function paymenter($Observer)
{
$order = $Observer->getEvent();
Mage::log($order->getName(),null,'event.log',true);
}
}
?>
log not created.
Share any debug tool for magento?