Mage :: log does not print to system.log in Magento

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

  • I set SetEnv MAGE_IS_DEVELOPER_MODE "true" in htaccess and checked it normally in Magento / index.php
  • I turned on Dev log settings and checked the database is well-executed
  • magento / var / log folder and system.log are set to 777

Did I forget something?

Magento ver. 1.12.0.2

+7
source share
3 answers

Check your web server temp. If the application cannot write to. / var / log /, this is where it ends.

+11
source

This is really the story of chmod. I made one small (magento /) chmod -R 777 var / and everything was fixed.

+2
source

Verify that system.log is used for the web server user. Mine is www data. This is also chmod 777. I noticed that when your / magentoroot / var / log files do not exist or are not configured correctly, magento will write the log files / cache files to / tmp.

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

He cleans them.

0
source

All Articles