public function DatabaseConnection::setLogger

7.x database.inc public DatabaseConnection::setLogger(DatabaseLog $logger)

Associates a logging object with this connection.

Parameters

$logger: The logging object we want to use.

File

drupal-7.x/includes/database/database.inc, line 540
Core systems for the database layer.

Class

DatabaseConnection
Base Database API class.

Code

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