Logger::outputFatal PHP Method

outputFatal() public method

public outputFatal ( $caller, $msg, $shift )
    public function outputFatal($caller, $msg, $shift = 0)
    {
        // first, let's see if we should log this
        $frame = $this->findFrame('fatal');
        if ($this->log_output) {
            $this->logLine($this->txtLine("fatal: {$msg}", $frame), 'fatal', 'error');
        }
        if (!$this->web_output) {
            echo $this->public_error_message;
        } else {
            if ($this->html_stdout) {
                echo "<h2>Fatal error</h2>\n";
            }
            echo $this->html_stdout ? $this->htmlLine("{$msg}", $frame, 'fatal') : $this->txtLine("{$msg}", $frame, 'fatal');
            if ($this->html_stdout) {
                echo $this->backtrace('fatal');
            } else {
                echo "Stack trace:\n";
                echo $this->txtBacktrace('fatal');
            }
        }
        exit;
    }