PHP 클래스 yii\debug\LogTarget

부터: 2.0
저자: Qiang Xue ([email protected])
상속: extends yii\log\Target
파일 보기 프로젝트 열기: yiisoft/yii2-debug 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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