mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
添加日志记录,以及添加异常忽略支持
异常忽略支持忽略指定的异常类型,被忽略的异常仅仅记录到日志,不会中断程序执行 忽略的异常类型支持PHP的所有错误级别,多个级别支持 | 运算符 参考:http://php.net/manual/en/errorfunc.constants.php
This commit is contained in:
@@ -105,6 +105,9 @@ return [
|
||||
|
||||
// 异常页面的模板文件
|
||||
'exception_tmpl' => THINK_PATH . 'tpl' . DS . 'think_exception.tpl',
|
||||
// 异常处理忽略的错误类型,支持PHP所有的错误级别常量,多个级别可以用|运算法
|
||||
// 参考:http://php.net/manual/en/errorfunc.constants.php
|
||||
'exception_ignore_type' => 0,
|
||||
// 错误显示信息,非调试模式有效
|
||||
'error_message' => '页面错误!请稍后再试~',
|
||||
// 错误定向页面
|
||||
|
||||
Reference in New Issue
Block a user