PHP Class 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.
Afficher le fichier
Open project: cakephp/debug_kit
Class Usage Examples
Protected Properties
Méthodes publiques
Method Details
__construct()
public méthode
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. |
Résultat |
void |
|
totalRows()
public méthode
totalTime()
public méthode
Property Details
$_connectionName protected_oe property
Name of the connection being logged.
protected string $_connectionName |
Résultat |
string |
|
$_logger protected_oe property
protected LoggedQuery,Cake\Database\Log $_logger |
Résultat |
Cake\Database\Log\LoggedQuery |
|
$_queries protected_oe property
Logs from the current request.
protected array $_queries |
Résultat |
array |
|
$_totalRows protected_oe property
Total rows of all queries
protected int $_totalRows |
Résultat |
integer |
|
$_totalTime protected_oe property
Total time (ms) of all queries
protected int $_totalTime |
Résultat |
integer |
|