Robert
Robert

Reputation: 183

Mage::log doesn't print in system.log in Magento

my Mage::log() are never displayed in system.log

Did I forget something ?

Magento ver. 1.12.0.2

Upvotes: 9

Views: 11862

Answers (3)

Robert
Robert

Reputation: 183

It was indeed a chmod story I did one little (magento/) chmod -R 777 var/ and all was fixed

Upvotes: 2

CarComp
CarComp

Reputation: 2018

Make sure that system.log is chown'ed to the webserver user. Mine is www-data. It also is chmod 777. I've noticed that when your /magentoroot/var/log files do not exist or are not set up correctly, magento will write log files / cache files to /tmp.

Also, do not delete logfiles. Use sudo truncate -s0 logfilename.log

It clears them.

Upvotes: 0

benmarks
benmarks

Reputation: 23205

Check in your webserver's temp directory. If the application cannot write to ./var/log/, this is where it ends up.

Upvotes: 11

Related Questions