public function Connection::setLogger

Associates a logging object with this connection.

Parameters

$logger: The logging object we want to use.

File

drupal/core/lib/Drupal/Core/Database/Connection.php, line 381
Definition of Drupal\Core\Database\Connection

Class

Connection
Base Database API class.

Namespace

Drupal\Core\Database

Code

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