You are here

protected function SolrAdminFormBase::getLogger in Search API Solr 4.x

Gets the logger for a specific channel.

@todo Require the use of injected services: https://www.drupal.org/node/2733703

Parameters

string $channel: The name of the channel. Can be any string, but the general practice is to use the name of the subsystem calling this.

Return value

\Psr\Log\LoggerInterface The logger for the given channel.

Overrides LoggerChannelTrait::getLogger

File

modules/search_api_solr_admin/src/Form/SolrAdminFormBase.php, line 62

Class

SolrAdminFormBase
Base form for Solr admin forms.

Namespace

Drupal\search_api_solr_admin\Form

Code

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