如何设置PHP的堆栈跟踪深度';谁的错误日志?

如何设置PHP的堆栈跟踪深度';谁的错误日志?,php,configuration,xdebug,ini,Php,Configuration,Xdebug,Ini,在我的php.ini中,我设置了这一行: error_log = c:/php/php_errors.log 它允许将错误输出到指定的文件中 但是,它总是输出最多4个,即: PHP Fatal error: Uncaught ServiceNotFoundException Stack trace: #0 PluginManager.php(124): AbstractPluginManager->get('getEntityManage...', NULL) #1 AbstractC

在我的
php.ini
中,我设置了这一行:

error_log = c:/php/php_errors.log
它允许将错误输出到指定的文件中

但是,它总是输出最多4个,即:

PHP Fatal error:  Uncaught ServiceNotFoundException
Stack trace:
#0 PluginManager.php(124): AbstractPluginManager->get('getEntityManage...', NULL)
#1 AbstractController.php(301): PluginManager->get('getEntityManage...', NULL)
#2 AbstractController.php(316): AbstractController->plugin('getEntityManage...')
#3 AbstractPluginManager.php on line 133
^^^ stops at depth 4 always
我想控制堆栈深度。怎么用? 我在

上找不到任何内容。该值在php.ini中为“log\u errors\u max\u len”,或者可以通过ini\u set()进行配置:


如果在php.ini中将“log\u errors\u max\u len”设置为0会发生什么?这也可能是运行时可配置的:ini\u set(“log\u errors\u max\u len”,0);你就是那个男人,这很有效!谢谢,很乐意帮忙!谢谢,它终于让我不用进入第三方文件来放置我自己的
debug\u print\u backtrace
不客气。如果你觉得有这样的倾向,将此作为“被接受”的答案是很好的。当然,在7分钟的暂停期之后
ini_set("log_errors_max_len",0);