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.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
    <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>