11use InvalidArgumentException;
 
   73            throw new InvalidArgumentException(
 
   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(),
 
  278                $this->getFrameArgsOutput($frame, $line)
 
An exception for terminatinating execution or to throw for unit testing.
Abstract implementation of a Handler.
const QUIT
The Handler has handled the Throwable in some way, and wishes to quit/stop execution.
Handler outputing plaintext error messages.
getFrameArgsOutput(Frame $frame, $line)
Get the frame args var_dump.
addTraceToOutput($addTraceToOutput=null)
Add error trace to output.
loggerOnly($loggerOnly=null)
Only output to logger.
__construct($logger=null)
Constructor.
setLogger($logger=null)
Set the output logger interface.
addTraceFunctionArgsToOutput($addTraceFunctionArgsToOutput=null)
Add error trace function arguments to output.
setDumper(callable $dumper)
Set var dumper callback function.
generateResponse()
Create plain text response and return it as a string.
canOutput()
Test if handler can output to stdout.
$addTraceFunctionArgsToOutput
getTraceFunctionArgsOutputLimit()
Get the size limit in bytes of frame arguments var_dump output.
$traceFunctionArgsOutputLimit
setTraceFunctionArgsOutputLimit($traceFunctionArgsOutputLimit)
Describes a logger instance.
Whoops - php errors for cool kids.