PHP Class yii\debug\LogTarget

Since: 2.0
Author: Qiang Xue ([email protected])
Inheritance: extends yii\log\Target
Datei anzeigen Open project: yiisoft/yii2-debug Class Usage Examples

Public Properties

Property Type Description
$module Module
$tag

Public Methods

Method Description
__construct ( Module $module, array $config = [] )
collect ( array $messages, boolean $final ) Processes the given log messages.
export ( ) Exports log messages to a specific destination.

Protected Methods

Method Description
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.

Private Methods

Method Description
updateIndexFile ( string $indexFile, array $summary ) Updates index file with summary log data

Method Details

__construct() public method

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

collect() public method

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() protected method

Collects summary data of current request.
protected collectSummary ( ) : array
return array

export() public method

Child classes must implement this method.
public export ( )

gc() protected method

protected gc ( &$manifest )

getSqlTotalCount() protected method

Returns total sql count executed in current request. If database panel is not configured returns 0.
protected getSqlTotalCount ( ) : integer
return integer

Property Details

$module public_oe property

public Module,yii\debug $module
return Module

$tag public_oe property

public $tag