public function DatabaseConnection::setLogger

public DatabaseConnection::setLogger(DatabaseLog $logger)

Associates a logging object with this connection.

Parameters

$logger: The logging object we want to use.

File

includes/database/database.inc, line 542
Core systems for the database layer.

Class

DatabaseConnection
Base Database API class.

Code

public function setLogger(DatabaseLog $logger) {
  $this->logger = $logger;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!database!database.inc/function/DatabaseConnection::setLogger/7.x