|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Handler outputing plaintext error messages. More...
Inheritance diagram for Whoops\Handler\PlainTextHandler:
Collaboration diagram for Whoops\Handler\PlainTextHandler:Public Member Functions | |
| __construct ($logger=null) | |
| Constructor. More... | |
| setLogger ($logger=null) | |
| Set the output logger interface. More... | |
| getLogger () | |
| setDumper (callable $dumper) | |
| Set var dumper callback function. More... | |
| addTraceToOutput ($addTraceToOutput=null) | |
| Add error trace to output. More... | |
| addTraceFunctionArgsToOutput ($addTraceFunctionArgsToOutput=null) | |
| Add error trace function arguments to output. More... | |
| setTraceFunctionArgsOutputLimit ($traceFunctionArgsOutputLimit) | |
| generateResponse () | |
| Create plain text response and return it as a string. More... | |
| getTraceFunctionArgsOutputLimit () | |
| Get the size limit in bytes of frame arguments var_dump output. More... | |
| loggerOnly ($loggerOnly=null) | |
| Only output to logger. More... | |
| handle () | |
| contentType () | |
Public Member Functions inherited from Whoops\Handler\Handler | |
| setRun (RunInterface $run) | |
| setInspector (Inspector $inspector) | |
| setException ($exception) | |
| handle () | |
| setRun (RunInterface $run) | |
| setException ($exception) | |
| setInspector (Inspector $inspector) | |
Data Fields | |
| const | VAR_DUMP_PREFIX = ' | ' |
Data Fields inherited from Whoops\Handler\Handler | |
| const | DONE = 0x10 |
| const | LAST_HANDLER = 0x20 |
| The Handler has handled the Throwable in some way, and wishes to skip any other Handler. More... | |
| const | QUIT = 0x30 |
| The Handler has handled the Throwable in some way, and wishes to quit/stop execution. More... | |
Protected Member Functions | |
| dump ($var) | |
| Dump variable. More... | |
Protected Member Functions inherited from Whoops\Handler\Handler | |
| getRun () | |
| getInspector () | |
| getException () | |
Protected Attributes | |
| $logger | |
| $dumper | |
Private Member Functions | |
| canOutput () | |
| Test if handler can output to stdout. More... | |
| getFrameArgsOutput (Frame $frame, $line) | |
| Get the frame args var_dump. More... | |
Private Attributes | |
| $addTraceToOutput = true | |
| $addTraceFunctionArgsToOutput = false | |
| $traceFunctionArgsOutputLimit = 1024 | |
| $loggerOnly = false | |
Handler outputing plaintext error messages.
Can be used directly, or will be instantiated automagically by Whoops\Run if passed to Run::pushHandler
Definition at line 20 of file PlainTextHandler.php.
| Whoops\Handler\PlainTextHandler::__construct | ( | $logger = null | ) |
Constructor.
| InvalidArgumentException | If argument is not null or a LoggerInterface |
| \Psr\Log\LoggerInterface | null | $logger |
Definition at line 59 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\$logger, and Whoops\Handler\PlainTextHandler\setLogger().
Here is the call graph for this function:| Whoops\Handler\PlainTextHandler::addTraceFunctionArgsToOutput | ( | $addTraceFunctionArgsToOutput = null | ) |
Add error trace function arguments to output.
Set to True for all frame args, or integer for the n first frame args.
| bool | integer | null | $addTraceFunctionArgsToOutput |
Definition at line 123 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\$addTraceFunctionArgsToOutput, and Whoops\Handler\PlainTextHandler\addTraceFunctionArgsToOutput().
Referenced by Whoops\Handler\PlainTextHandler\addTraceFunctionArgsToOutput(), and Whoops\Handler\PlainTextHandler\getFrameArgsOutput().
Here is the call graph for this function:
Here is the caller graph for this function:| Whoops\Handler\PlainTextHandler::addTraceToOutput | ( | $addTraceToOutput = null | ) |
Add error trace to output.
| bool | null | $addTraceToOutput |
Definition at line 107 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\$addTraceToOutput, and Whoops\Handler\PlainTextHandler\addTraceToOutput().
Referenced by Whoops\Handler\PlainTextHandler\addTraceToOutput().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Test if handler can output to stdout.
Definition at line 193 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\loggerOnly().
Referenced by Whoops\Handler\PlainTextHandler\handle().
Here is the call graph for this function:
Here is the caller graph for this function:| Whoops\Handler\PlainTextHandler::contentType | ( | ) |
Definition at line 310 of file PlainTextHandler.php.
|
protected |
Dump variable.
| mixed | $var |
Definition at line 237 of file PlainTextHandler.php.
Referenced by Whoops\Handler\PlainTextHandler\getFrameArgsOutput().
Here is the caller graph for this function:| Whoops\Handler\PlainTextHandler::generateResponse | ( | ) |
Create plain text response and return it as a string.
Definition at line 151 of file PlainTextHandler.php.
References Whoops\Handler\Handler\$exception, Whoops\Handler\Handler\getException(), and sprintf.
Referenced by Whoops\Handler\PlainTextHandler\handle().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Get the frame args var_dump.
| \Whoops\Exception\Frame | $frame | [description] |
| integer | $line | [description] |
Definition at line 204 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\addTraceFunctionArgsToOutput(), Whoops\Handler\PlainTextHandler\dump(), Whoops\Exception\Frame\getArgs(), Whoops\Handler\PlainTextHandler\getTraceFunctionArgsOutputLimit(), and sprintf.
Here is the call graph for this function:| Whoops\Handler\PlainTextHandler::getLogger | ( | ) |
Definition at line 86 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\$logger.
Referenced by Whoops\Handler\PlainTextHandler\handle().
Here is the caller graph for this function:| Whoops\Handler\PlainTextHandler::getTraceFunctionArgsOutputLimit | ( | ) |
Get the size limit in bytes of frame arguments var_dump output.
If the limit is reached, the var_dump output is discarded. Prevent memory limit errors.
Definition at line 170 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\$traceFunctionArgsOutputLimit.
Referenced by Whoops\Handler\PlainTextHandler\getFrameArgsOutput().
Here is the caller graph for this function:| Whoops\Handler\PlainTextHandler::handle | ( | ) |
Implements Whoops\Handler\HandlerInterface.
Definition at line 290 of file PlainTextHandler.php.
References $response, Whoops\Handler\PlainTextHandler\canOutput(), Whoops\Handler\Handler\DONE, Whoops\Handler\PlainTextHandler\generateResponse(), Whoops\Handler\PlainTextHandler\getLogger(), and Whoops\Handler\Handler\QUIT.
Here is the call graph for this function:| Whoops\Handler\PlainTextHandler::loggerOnly | ( | $loggerOnly = null | ) |
Only output to logger.
| bool | null | $loggerOnly |
Definition at line 180 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\$loggerOnly, and Whoops\Handler\PlainTextHandler\loggerOnly().
Referenced by Whoops\Handler\PlainTextHandler\canOutput(), and Whoops\Handler\PlainTextHandler\loggerOnly().
Here is the call graph for this function:
Here is the caller graph for this function:| Whoops\Handler\PlainTextHandler::setDumper | ( | callable | $dumper | ) |
Set var dumper callback function.
| callable | $dumper |
Definition at line 97 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\$dumper.
| Whoops\Handler\PlainTextHandler::setLogger | ( | $logger = null | ) |
Set the output logger interface.
| InvalidArgumentException | If argument is not null or a LoggerInterface |
| \Psr\Log\LoggerInterface | null | $logger |
Definition at line 69 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\$logger.
Referenced by Whoops\Handler\PlainTextHandler\__construct().
Here is the caller graph for this function:| Whoops\Handler\PlainTextHandler::setTraceFunctionArgsOutputLimit | ( | $traceFunctionArgsOutputLimit | ) |
Definition at line 142 of file PlainTextHandler.php.
References Whoops\Handler\PlainTextHandler\$traceFunctionArgsOutputLimit.
|
private |
Definition at line 42 of file PlainTextHandler.php.
Referenced by Whoops\Handler\PlainTextHandler\addTraceFunctionArgsToOutput().
|
private |
Definition at line 37 of file PlainTextHandler.php.
Referenced by Whoops\Handler\PlainTextHandler\addTraceToOutput().
|
protected |
Definition at line 32 of file PlainTextHandler.php.
Referenced by Whoops\Handler\PlainTextHandler\setDumper().
|
protected |
Definition at line 27 of file PlainTextHandler.php.
Referenced by Whoops\Handler\PlainTextHandler\__construct(), Whoops\Handler\PlainTextHandler\getLogger(), and Whoops\Handler\PlainTextHandler\setLogger().
|
private |
Definition at line 52 of file PlainTextHandler.php.
Referenced by Whoops\Handler\PlainTextHandler\loggerOnly().
|
private |
Definition at line 47 of file PlainTextHandler.php.
Referenced by Whoops\Handler\PlainTextHandler\getTraceFunctionArgsOutputLimit(), and Whoops\Handler\PlainTextHandler\setTraceFunctionArgsOutputLimit().
| const Whoops\Handler\PlainTextHandler::VAR_DUMP_PREFIX = ' | ' |
Definition at line 22 of file PlainTextHandler.php.