PHP 클래스 DebugKit\Database\Log\DebugLog

This logger decorates the existing logger if it exists, and stores log messages internally so they can be displayed or stored for future use.
상속: extends Cake\Database\Log\QueryLogger
파일 보기 프로젝트 열기: cakephp/debug_kit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_connectionName string Name of the connection being logged.
$_logger Cake\Database\Log\LoggedQuery Decorated logger.
$_queries array Logs from the current request.
$_totalRows integer Total rows of all queries
$_totalTime integer Total time (ms) of all queries

공개 메소드들

메소드 설명
__construct ( Cake\Database\Log\QueryLogger $logger, string $name ) Constructor
log ( Cake\Database\Log\LoggedQuery $query ) : void Log queries
name ( ) : array Get the stored logs.
queries ( ) : array Get the stored logs.
totalRows ( ) : integer Get the total rows
totalTime ( ) : integer Get the total time

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Cake\Database\Log\QueryLogger $logger, string $name )
$logger Cake\Database\Log\QueryLogger The logger to decorate and spy on.
$name string The name of the connection being logged.

log() 공개 메소드

Log queries
public log ( Cake\Database\Log\LoggedQuery $query ) : void
$query Cake\Database\Log\LoggedQuery The query being logged.
리턴 void

name() 공개 메소드

Get the stored logs.
public name ( ) : array
리턴 array

queries() 공개 메소드

Get the stored logs.
public queries ( ) : array
리턴 array

totalRows() 공개 메소드

Get the total rows
public totalRows ( ) : integer
리턴 integer

totalTime() 공개 메소드

Get the total time
public totalTime ( ) : integer
리턴 integer

프로퍼티 상세

$_connectionName 보호되어 있는 프로퍼티

Name of the connection being logged.
protected string $_connectionName
리턴 string

$_logger 보호되어 있는 프로퍼티

Decorated logger.
protected LoggedQuery,Cake\Database\Log $_logger
리턴 Cake\Database\Log\LoggedQuery

$_queries 보호되어 있는 프로퍼티

Logs from the current request.
protected array $_queries
리턴 array

$_totalRows 보호되어 있는 프로퍼티

Total rows of all queries
protected int $_totalRows
리턴 integer

$_totalTime 보호되어 있는 프로퍼티

Total time (ms) of all queries
protected int $_totalTime
리턴 integer