You are here

protected function EckEntityType::logger in Entity Construction Kit (ECK) 8

Gets the logger for a specific channel.

Parameters

string $channel: The name of the channel.

Return value

\Psr\Log\LoggerInterface The logger for this channel.

File

src/Entity/EckEntityType.php, line 206

Class

EckEntityType
Defines the ECK Entity Type config entities.

Namespace

Drupal\eck\Entity

Code

protected function logger($channel) {
  return \Drupal::getContainer()
    ->get('logger.factory')
    ->get($channel);
}