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.
파일 보기
프로젝트 열기: cakephp/debug_kit
1 사용 예제들
보호된 프로퍼티들
공개 메소드들
메소드 상세
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. |
public log ( Cake\Database\Log\LoggedQuery $query ) : void |
$query |
Cake\Database\Log\LoggedQuery |
The query being logged. |
리턴 |
void |
|
프로퍼티 상세
$_connectionName 보호되어 있는 프로퍼티
Name of the connection being logged.
protected string $_connectionName |
리턴 |
string |
|
protected LoggedQuery,Cake\Database\Log $_logger |
리턴 |
Cake\Database\Log\LoggedQuery |
|
Logs from the current request.
protected array $_queries |
리턴 |
array |
|
Total rows of all queries
protected int $_totalRows |
리턴 |
integer |
|
Total time (ms) of all queries
protected int $_totalTime |
리턴 |
integer |
|