You are here

public function DatabaseConnection::setLogger in Drupal 7

Associates a logging object with this connection.

Parameters

$logger: The logging object we want to use.

File

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

Class

DatabaseConnection
Base Database API class.

Code

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