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

前端 未结 3 1615
别跟我提以往
别跟我提以往 2021-01-05 01:38

In Magento how do I enable exception.log and system.log at the database level?

I know I can do it through admin backend (which I do

相关标签:
3条回答
  • 2021-01-05 02:07

    Use following query

    INSERT INTO `yourmagentodbname`.`core_config_data` (`scope`, `scope_id`, `path`, `value`) VALUES ( 'default', '0', 'dev/log/active', '1');
    
    0 讨论(0)
  • 2021-01-05 02:12

    Your solution is right. That's the right place to enable it in the DB. If it's not working 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 not disabled for a particular scope that's overriding your setting

    0 讨论(0)
  • 2021-01-05 02:18

    Check folder permissions. You need to give permissions for the user that is running apache.

    In my case just the sub directory "log" was not owned by the running 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 讨论(0)
提交回复
热议问题