Chuyển đến nội dung chính

Bài đăng

Đang hiển thị bài đăng từ Tháng 5, 2023

Magento Debug Logging

Debug logging 'db_logger' => [      'output' => 'file',      'log_everything' => 0,      'query_time_threshold' => '0.001',      'include_stacktrace' => 0  ] By default, Magento writes to the debug log  ( <install_directory>/var/log/debug.log ) when it is in default or develop mode, but not when it is in production mode. Use the  bin/magento setup:config:set --enable-debug-logging  command to change the default value. As of Magento 2.3.1, you can no longer use the  bin/magento config:set dev/debug/debug_logging  command to enable or disable debug logging for the current mode. To enable debug logging Use the  setup:config:set  command to enable debug logging for the current mode. bin/magento setup:config:set --enable-debug-logging = true Flush the cache. bin/magento cache:flush To disable debug logging Use the  setup:config:set  command t...