20 public static function format($exception, $htmlMode =
false, $level = 0)
22 $formatter =
new LogFormatter((
bool)($level & static::SHOW_PARAMETERS), static::MAX_CHARS);
24 $result = $formatter->format(
"{exception}{trace}{delimiter}\n", [
25 'exception' => $exception,
26 'trace' => static::getTrace($exception),
31 $result =
'<pre>'.Main\Text\HtmlFilter::encode($result).
'</pre>';