我需要在typo3中禁用所有错误和警告日志记录。 我怎么能这样做?
我试图在localconf.php
中设置它$TYPO3_CONF_VARS['SYS']['displayErrors'] = 0;
$TYPO3_CONF_VARS['SYS']['syslogErrorReporting'] = 0;
$TYPO3_CONF_VARS['SYS']['belogErrorReporting'] = 0;
但它似乎不起作用
答案 0 :(得分:3)
我想我只是写下了禁用所有日志记录的完整答案:
<强> localconf.php 强>
$TYPO3_CONF_VARS['SYS']['displayErrors'] = '0';
$TYPO3_CONF_VARS['SYS']['devIPmask'] = '';
$TYPO3_CONF_VARS['SYS']['errorHandler'] = '';
$TYPO3_CONF_VARS['SYS']['debugExceptionHandler'] = '';
$TYPO3_CONF_VARS['SYS']['productionExceptionHandler'] = '';
$TYPO3_CONF_VARS['SYS']['systemLog'] = '';
$TYPO3_CONF_VARS['SYS']['enable_errorDLOG'] = '0';
$TYPO3_CONF_VARS['SYS']['enable_exceptionDLOG'] = '0';
$TYPO3_CONF_VARS['SYS']['enableDeprecationLog'] = '0';
<强>的.htaccess 强>
php_flag display_errors off
php_flag log_errors off
答案 1 :(得分:0)
什么是 global_localconf.php ?那一定是一些自定义设置,对吧?
您可以手动或通过安装工具将设置添加到 typo3conf / localconf.php (http://www.example.com/typo3/install/index.php?TYPO3_INSTALL [type] ] = extConfig)。
否则,可以在 .htaccess 文件(在您网站的根目录中)中更改显示PHP警告/错误($TYPO3_CONF_VARS['SYS']['displayErrors']
设置的内容):
php_flag display_errors off