PHP Класс yii\debug\LogTarget

С версии: 2.0
Автор: Qiang Xue ([email protected])
Наследование: extends yii\log\Target
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$module Module
$tag

Открытые методы

Метод Описание
__construct ( Module $module, array $config = [] )
collect ( array $messages, boolean $final ) Processes the given log messages.
export ( ) Exports log messages to a specific destination.

Защищенные методы

Метод Описание
collectSummary ( ) : array Collects summary data of current request.
gc ( &$manifest )
getSqlTotalCount ( ) : integer Returns total sql count executed in current request. If database panel is not configured returns 0.

Приватные методы

Метод Описание
updateIndexFile ( string $indexFile, array $summary ) Updates index file with summary log data

Описание методов

__construct() публичный Метод

public __construct ( Module $module, array $config = [] )
$module Module
$config array

collect() публичный Метод

This method will filter the given messages with [[levels]] and [[categories]]. And if requested, it will also export the filtering result to specific medium (e.g. email).
public collect ( array $messages, boolean $final )
$messages array log messages to be processed. See [[\yii\log\Logger::messages]] for the structure of each message.
$final boolean whether this method is called at the end of the current application

collectSummary() защищенный Метод

Collects summary data of current request.
protected collectSummary ( ) : array
Результат array

export() публичный Метод

Child classes must implement this method.
public export ( )

gc() защищенный Метод

protected gc ( &$manifest )

getSqlTotalCount() защищенный Метод

Returns total sql count executed in current request. If database panel is not configured returns 0.
protected getSqlTotalCount ( ) : integer
Результат integer

Описание свойств

$module публичное свойство

public Module,yii\debug $module
Результат Module

$tag публичное свойство

public $tag