src/Trace.php
public static function catchNotice($level, $message, $file, $line)
    {
        if ($level) {

            $debugContent = self::getFileContent($file, $line);

            $type = isset(self::$traceErrorType[$level]) ? self::$traceErrorType[$level] : 'unknown';
            $info = $type . ' : ' . $message . ' from ' . $file . ' on ' . $line;
            self::addErrorInfo($info);

            if (config('trace')) {
                $e = array(
                    'message' => $type . ' : ' . $message,
                    'file'    => $file,
                    'line'    => $line,
                );

                return include FARM_PATH . DS . 'trace' . DS . 'error.html';
            }
        }
    }
public static function catchNotice($level, $message, $file, $line)
    {
        if ($level) {

            $debugContent = self::getFileContent($file, $line);

            $type = isset(self::$traceErrorType[$level]) ? self::$traceErrorType[$level] : 'unknown';
            $info = $type . ' : ' . $message . ' from ' . $file . ' on ' . $line;
            self::addErrorInfo($info);

            if (config('trace')) {
                $e = array(
                    'message' => $type . ' : ' . $message,
                    'file'    => $file,
                    'line'    => $line,
                );

                return include FARM_PATH . DS . 'trace' . DS . 'error.html';
            }
        }
    }
捕获Notice错误信息