You are here

protected function InstagramApiTrait::setLogger in Instagram Feeds 8

Sets logger for instagram_feeds channel.

Parameters

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The Logger factory service.

Return value

$this

File

src/InstagramApiTrait.php, line 114

Class

InstagramApiTrait
Instagram API Trait.

Namespace

Drupal\instagram_feeds

Code

protected function setLogger(LoggerChannelFactoryInterface $logger_factory) {
  $this->logger = $logger_factory
    ->get('instagram_feeds');
  return $this;
}