How to enable exception.log and system.log in a Magento database?

In Magento, how to enable exception.log and system.log at the database level?

I know that I can do this through the admin backend ( which I don't want to do ).

What value do you need to change? I suggested that dev/log/active should be set to 1 in core_config_data , but I did this and did not core_config_data logging. Thanks!

+7
source share
3 answers

Your decision is correct. This is the right place to include it in the database. If it does not work for you, try clearing the cache. If still not working, try select * from core_config_data where path = "dev/log/active"; and check if it is disabled for a specific area that overrides your setting

+10
source

Use the following query

 INSERT INTO `yourmagentodbname`.`core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ( 'default', '0', 'dev/log/active', '1'); 
+3
source

Check folder permissions. You need to grant permissions for the user running apache.

In my case, only the "log" subdirectory did not belong to the current apache user.

My apache user is bitnami: daemon ...

So, for me, the solution was:

 sudo chmod -R 777 var/ sudo chown -R bitnami:daemon var/ 
0
source

All Articles