I have overwritten Sitemap.php
in app/code/local/Mage/Sitemap/Model/Sitemap.php
. The file seems to be used, if I remove all contents, there's an error as expected.
I copied the complete content of the standard Sitemap.php
, with one single change. I added
public function generateXml() {
Mage::log('test');
...
}
When I do this anywhere else, it prints test
in var/log/system.log
as expected, only in this file, it does not log the message.
Any help is greatly appreciated
EDIT
using
Mage::log('text', null, <file>, true);
does not work either
var/log/
writable by your web user (apache
,httpd
,www-data
, etc.)SitemapController.php
, so yes, it is. and yesvar/log
is writable. Thanks for your ideasapp/code/local/Mage/Sitemap/Model/Observer.php
rather thanSitemap.php