class DetailedErrorFormatter implements FormatterInterface (View source)

Monolog-compatible error handler that will output a detailed error message to the screen.

Methods

public
format(LogRecord $record)

No description

public
formatBatch(array $records)

No description

protected
int|null
findInTrace(array $trace, string $file, string $line)

Find a call on the given file & line in the trace

protected
string
output(int $errno, string $errstr, string $errfile, int $errline, array $errcontext)

Render a developer facing error page, showing the stack trace and details of the code where the error occurred.

Details

format(LogRecord $record)

No description

Parameters

LogRecord $record

formatBatch(array $records)

No description

Parameters

array $records

protected int|null findInTrace(array $trace, string $file, string $line)

Find a call on the given file & line in the trace

Parameters

array $trace

The result of debug_backtrace()

string $file

The filename to look for

string $line

The line number to look for

Return Value

int|null

The matching row number, if found, or null if not found

protected string output(int $errno, string $errstr, string $errfile, int $errline, array $errcontext)

Render a developer facing error page, showing the stack trace and details of the code where the error occurred.

Parameters

int $errno
string $errstr
string $errfile
int $errline
array $errcontext

Return Value

string