DebugLoggerInterface

interface DebugLoggerInterface DebugLoggerInterface. Methods array getLogs() Returns an array of logs. int countErrors() Returns the number of errors. Details array getLogs() Returns an array of logs. A log is an array with the following mandatory keys: timestamp, message, priority, and priorityName. It can also have an optional context key containing an array. Return Value array An array of logs int countEr

DebugHandlersListener::getSubscribedEvents()

static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. The array keys are event names and the value can be: The method name to call (priority defaults to 0) An array composed of the method name to call and the priority An array of arrays composed of the method names to call and respective priorities, or 0 if unset For instance: array('eventName' => 'methodName') array('eventName' => array('methodName', $priority)) a

DebugHandlersListener::configure()

configure(Event $event = null) Configures the error handler. Parameters Event $event The triggering event

DebugHandlersListener

class DebugHandlersListener implements EventSubscriberInterface Configures errors and exceptions handlers. Methods __construct(callable $exceptionHandler = null, LoggerInterface $logger = null, array|int $levels = E_ALL, int|null $throwAt = E_ALL, bool $scream = true, string $fileLinkFormat = null) configure(Event $event = null) Configures the error handler. static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. Details

DebugHandler::getLogs()

array getLogs() Returns an array of logs. A log is an array with the following mandatory keys: timestamp, message, priority, and priorityName. It can also have an optional context key containing an array. Return Value array An array of logs

DebugHandler::countErrors()

int countErrors() Returns the number of errors. Return Value int The number of errors

DebugHandler

class DebugHandler extends TestHandler implements DebugLoggerInterface DebugLogger. Methods array getLogs() Returns an array of logs. int countErrors() Returns the number of errors. Details array getLogs() Returns an array of logs. A log is an array with the following mandatory keys: timestamp, message, priority, and priorityName. It can also have an optional context key containing an array. Return Value array An array of logs

DebuggerInterface deprecated

interface DebuggerInterface deprecated since version 2.4, to be removed in 3.0. Use Psr\Log\LoggerInterface instead. DebuggerInterface is the interface you need to implement to debug template loader instances. Methods log(string $message) Logs a message. Details log(string $message) Logs a message. Parameters string $message A message to log

Debugger deprecated

class Debugger implements DebuggerInterface deprecated since version 2.4, to be removed in 3.0. Use Psr\Log\LoggerInterface instead. Binds the Symfony templating loader debugger to the Symfony logger. Methods __construct(LoggerInterface $logger = null) Constructor. log(string $message) Logs a message. Details __construct(LoggerInterface $logger = null) Constructor. Parameters LoggerInterface $logger A LoggerInterface instance

DebugFormatterHelper::stop()

string stop(string $id, string $message, bool $successful, string $prefix = 'RES') Stops a formatting session. Parameters string $id The id of the formatting session string $message The message to display bool $successful Whether to consider the result as success string $prefix The prefix for the end output Return Value string