You are here

public function LoggerTrait::setLogger in Search API 8

Sets the logger.

Parameters

\Psr\Log\LoggerInterface $logger: The new logger.

Return value

$this

File

src/LoggerTrait.php, line 39

Class

LoggerTrait
Provides helper methods for logging with dependency injection.

Namespace

Drupal\search_api

Code

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