0

I am unable to log anything in the frontend. I added the following code in the index.php, just below Mage::run:

Mage::Log('test from index.php', 7, 'test.log');

It is successfully logged if I reload the backend, but not if I reload the frontend? Why?

Logging is activated under System -> Configuration -> Developer Options -> Log Settings.

I set the permissions of the folder var recursively to 777 (chmod -R 777 var/)

1

try with Mage::log('test from index.php', 7, 'test.log', true);
Notice the last parameter true. This will force the log.

  • That worked, thanks! But I found the real cause. I had to switch the storeview in the backend and activate the log there. – Black Dec 11 '18 at 10:40
0

I had to switch the storeview in the backend and activate the log there.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.