Zend Framework - not all errors are shown

后端 未结 2 1042
北海茫月
北海茫月 2021-01-22 16:57

In an action method, I have the following excerpt of code:

error_reporting(E_ALL);
ini_set(\'display_errors\', \'1\');
Logger::log(\'test\');

T

2条回答
  •  闹比i
    闹比i (楼主)
    2021-01-22 17:18

    I have exactly the same problem - I didn't manage to completely solve it, but I found out that all errors are correctly logged to a file, even though they are not displayed.

    Just put this lines in your .htaccess/server config:

    php_value       log_errors                      On
    php_value       error_log                       "/path_to_logs/errors.log"
    

提交回复
热议问题