74 'Argument to ' . __METHOD__ .
75 " must be a valid Logger Interface (aka. Monolog), " .
109 if (func_num_args() == 0) {
125 if (func_num_args() == 0) {
155 "%s: %s in file %s on line %d%s\n",
160 $this->getTraceOutput()
182 if (func_num_args() == 0) {
219 "\n%sArguments dump length greater than %d Bytes. Discarded.",
220 self::VAR_DUMP_PREFIX,
227 preg_replace(
'/^/m', self::VAR_DUMP_PREFIX, ob_get_clean())
240 call_user_func($this->dumper, $var);
250 private function getTraceOutput()
261 foreach ($frames as $frame) {
263 $class = $frame->getClass();
275 $frame->getFunction(),
$traceFunctionArgsOutputLimit
Handler outputing plaintext error messages.
Whoops - php errors for cool kids.
setDumper(callable $dumper)
Set var dumper callback function.
getTraceFunctionArgsOutputLimit()
Get the size limit in bytes of frame arguments var_dump output.
addTraceFunctionArgsToOutput($addTraceFunctionArgsToOutput=null)
Add error trace function arguments to output.
$addTraceFunctionArgsToOutput
const QUIT
The Handler has handled the Throwable in some way, and wishes to quit/stop execution.
setTraceFunctionArgsOutputLimit($traceFunctionArgsOutputLimit)
Abstract implementation of a Handler.
Describes a logger instance.
setLogger($logger=null)
Set the output logger interface.
canOutput()
Test if handler can output to stdout.
loggerOnly($loggerOnly=null)
Only output to logger.
addTraceToOutput($addTraceToOutput=null)
Add error trace to output.
getFrameArgsOutput(Frame $frame, $line)
Get the frame args var_dump.
generateResponse()
Create plain text response and return it as a string.
__construct($logger=null)
Constructor.