Class yii\debug\LogTarget
Inheritance | yii\debug\LogTarget » yii\log\Target |
---|---|
Available since version | 2.0 |
The debug LogTarget is used to store logs for later use in the debugger tool
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$module | yii\debug\Module | yii\debug\LogTarget | |
$tag | yii\debug\LogTarget |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | yii\debug\LogTarget | |
collect() | Processes the given log messages. | yii\debug\LogTarget |
export() | Exports log messages to a specific destination. | yii\debug\LogTarget |
Protected Methods
Method | Description | Defined By |
---|---|---|
collectSummary() | Collects summary data of current request. | yii\debug\LogTarget |
gc() | yii\debug\LogTarget | |
getSqlTotalCount() | Returns total sql count executed in current request. If database panel is not configured returns 0. | yii\debug\LogTarget |
Property Details
Method Details
public void __construct ( $module, $config = [] ) | ||
$module | yii\debug\Module | |
$config | array |
Processes the given log messages.
This method will filter the given messages with \yii\debug\levels and \yii\debug\categories. And if requested, it will also export the filtering result to specific medium (e.g. email).
public void collect ( $messages, $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 |
Collects summary data of current request.
protected array collectSummary ( ) |
Exports log messages to a specific destination.
Child classes must implement this method.
public void export ( ) |
protected void gc ( &$manifest ) | ||
$manifest |
Returns total sql count executed in current request. If database panel is not configured returns 0.
protected integer getSqlTotalCount ( ) |