You are here

public function LoggerAwareTrait::setLogger in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Psr/Log/LoggerAwareTrait.php \Psr\Log\LoggerAwareTrait::setLogger()

Sets a logger.

Parameters

LoggerInterface $logger:

File

lib/Psr/Log/LoggerAwareTrait.php, line 18

Class

LoggerAwareTrait
Basic Implementation of LoggerAwareInterface.

Namespace

Psr\Log

Code

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