If you want to disable Magento’s logging functioality (which can cause a lot of issues due to very large tables being generated and the overhead associated with that) then this is a possible solution.
You can disable events by putting some special XML in your app/etc/local.xml file.
This file does not get touched by upgrades (AFAIK) and the effects should kick in as soon as the configuration cache is cleared and rebuilt.
<frontend>
<events>
<controller_action_predispatch>
<observers><log><type>disabled</type></log></observers>
</controller_action_predispatch>
<controller_action_postdispatch>
<observers><log><type>disabled</type></log></observers>
</controller_action_postdispatch>
<customer_login>
<observers><log><type>disabled</type></log></observers>
</customer_login>
<customer_logout>
<observers><log><type>disabled</type></log></observers>
</customer_logout>
<sales_quote_save_after>
<observers><log><type>disabled</type></log></observers>
</sales_quote_save_after>
<checkout_quote_destroy>
<observers><log><type>disabled</type></log></observers>
</checkout_quote_destroy>
</events>
</frontend>

THank you very much, this had been bothering me.
Thanks, this worked out great!
Hello, thank you for this info. My hosting account was temp disabled due to the size of my database and hopefully this keeps the logs from disabling my account in the future. Thank you.
This code broke my site. what do I do to fix now? What needs to be done on the database to restore it to it’s state before I ran this XML script?
You may have a typo in your file or maybe this code is not compatible with your version of Magento.
To disable it just rename or delete the file and remove everything from your var/cache folder.
What version of Magento is this good for?
Thanks, worked!!!!
Could you show a full sample local.xml file after this modification?
I put the code suggested at the end of my /app/etc/local.xml and it broke the installation. Lucky it was enough to remove the code to restore it.
So I tried to put the code just before the closing tag, now the app is not broken but I don’t know if the modification is doing its job or those settings are simply ignored.
I’m using Magento 1.7.0.0
* “before the </config> closing tag,”