Magento, by default, logs a lot of things. This fills up the database slowly and also gives a slightly lower pageload. And if you're using external site-statistics-tools like GoogleAnalytics and Piwik anyway, this logging is pointless. Disable it using our extension.
The Magento core has an excellent logging system: Every time that a request hits the Magento application, its details are logged. This might lead to a huge database-size over time. Not everybody wants this: There are numerous threads discussing the periodic cleaning of those tables using the SQL-statement
TRUNCATE. But this is only part of the problem.
Besides filling up the database, this logging also causes various extra SQL
INSERT statements to be made for every pageload. If you have a busy site, this certainly has an impact on database-performance.
Now, if you're relying on those Magento log-statistics, you'll just have to accept this as a fact. But if you're using other external services like Piwik or GoogleAnalytics, this Magento logging is actually an unwanted feature.
Our extension gives you the power to disable all this Magento logging: Either for all requests being made, or only for search-robots. It disables logging, but also disables the autoincrement flag for certain search patterns: The latter is interesting if you are interested in what your real-life customers are actually searching for, while by default search engines mess up these statistics.
This extension makes overrides of two Magento core-models:
To determine which useragent is a robot, an XML-based list in the extensions
config.xml is used. The XML-path to this list is
config/global/skip_user_agents - using this path you could extend the list using your own
app/etc/local.xml file. If you have additions to the list, you could also just mail them to us, so we'll include it with the next release.
Please note that this extension is only available under Magento 1 (which is by now a deprecated platform that you should move away from). We have released a new extension for Magento 2, which is listed on our extensions page.
To use this extension, download the package and install the files in your Magento application. Next, navigate to the Magento System Configuration and locate the DisableLog section in the bottom. The extension has the following options:
Within the Magento backend, you can disable the output of various Magento modules through System > Configuration > Advanced > Disable Modules Output. Within that page, you can also disable the module
Mage_Log. But this does not disable logging. It disables the modules output, as in the theming output. The
Mage_Log module has no output, it only has functionality of logging.
You can test this for yourself. Take a Magento application, which has this DisableLog extension not installed yet. Next, disable the
Mage_Log module within the Disable Modules Output page. Next, go to the database table
log_url and you will see that new entries are still created when you visit pages in the frontend. Hence, that setting does not disable logging, and our extension DisableLog is still needed.
Within the Magento backend, you can disable logging through the setting System > Configuration > Developer > Log Settings > Enabled. But that setting only disables logging for developers to the logs in the folder
var/log. It does not disable the logging of statistical data of the
Mage_Log module. Hence, our extension DisableLog is still needed.
Only the tables starting with
log_ are kept clean by this extension.