user2002046
user2002046

Reputation: 63

Magento not writing to log files

My Magento installation suddenly stopped writing to log files. If I try to output the following:

Mage::log('Test', null, 'test.log');

Magento creates this file but it's empty.

Logging is activated in settings -> developer.

Upvotes: 2

Views: 3041

Answers (2)

Ketan Borada
Ketan Borada

Reputation: 864

Try this

Mage::log('Test', null, 'test.log', true);

Upvotes: 0

user2002046
user2002046

Reputation: 63

I managed to get the log working again. Although caching was disabled clearing it and clearing the sessionfolder and adding 777 permission to the log folder recursively the log started working.

Upvotes: 1

Related Questions