LoggerDataCollector
class LoggerDataCollector extends DataCollector implements LateDataCollectorInterface
LogDataCollector.
Методы
| serialize() | from DataCollector | |
| unserialize($data) | from DataCollector | |
| __construct($logger = null) | ||
| collect(Request $request, Response $response, Exception $exception = null) Собирает данные для данного запроса и ответа. | ||
| lateCollect() Собирает данные как можно позже. | ||
| array | getLogs() Получает журналы. | |
| getPriorities() | ||
| countErrors() | ||
| countDeprecations() | ||
| countWarnings() | ||
| countScreams() | ||
| string | getName() Возвращает имя коллектора. |
Подробности
serialize()
unserialize($data)
Параметры
| $data |
__construct($logger = null)
Параметры
| $logger |
collect(Request $request, Response $response, Exception $exception = null)
Собирает данные для данного запроса и ответа.
Параметры
| Request | $request | Экземпляр Request |
| Response | $response | Экземпляр Response |
| Exception | $exception | Экземпляр Exception |
lateCollect()
Собирает данные как можно позже.
array getLogs()
Получает журналы.
Значение возврата
| array | Массив журналов |
getPriorities()
countErrors()
countDeprecations()
countWarnings()
countScreams()
string getName()
Возвращает имя коллектора.
Значение возврата
| string | Имя коллектора |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.html