You are here

protected function WebformHandlerBase::getLogger in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformHandlerBase.php \Drupal\webform\Plugin\WebformHandlerBase::getLogger()

Get webform or webform_submission logger.

Parameters

string $channel: The logger channel. Defaults to 'webform'.

Return value

\Drupal\Core\Logger\LoggerChannelInterface Webform logger

File

src/Plugin/WebformHandlerBase.php, line 792

Class

WebformHandlerBase
Provides a base class for a webform handler.

Namespace

Drupal\webform\Plugin

Code

protected function getLogger($channel = 'webform') {
  return $this->loggerFactory
    ->get($channel);
}