Reputation: 183
my Mage::log() are never displayed in system.log
Did I forget something ?
Magento ver. 1.12.0.2
Upvotes: 9
Views: 11862
Reputation: 183
It was indeed a chmod story I did one little (magento/) chmod -R 777 var/ and all was fixed
Upvotes: 2
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
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