添加日志记录,以及添加异常忽略支持

异常忽略支持忽略指定的异常类型,被忽略的异常仅仅记录到日志,不会中断程序执行
忽略的异常类型支持PHP的所有错误级别,多个级别支持 | 运算符
参考:http://php.net/manual/en/errorfunc.constants.php
This commit is contained in:
麦当苗儿
2016-02-01 21:08:08 +08:00
parent d8b70444ba
commit 1fc0783ebf
2 changed files with 18 additions and 5 deletions

View File

@@ -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' => '页面错误!请稍后再试~',
// 错误定向页面