public function LoggerChannel::__construct in TMGMT Translator Smartling 8.3
Same name and namespace in other branches
- 8.4 modules/tmgmt_smartling_log_settings/src/Logger/LoggerChannel.php \Drupal\tmgmt_smartling_log_settings\Logger\LoggerChannel::__construct()
Constructs a LoggerChannel object
Parameters
string $channel: The channel name for this instance.
Overrides LoggerChannel::__construct
File
- modules/tmgmt_smartling_log_settings/ src/ Logger/ LoggerChannel.php, line 24 
Class
- LoggerChannel
- Defines a logger channel that most implementations will use.
Namespace
Drupal\tmgmt_smartling_log_settings\LoggerCode
public function __construct($channel) {
  $severity_mapping =& drupal_static(get_called_class());
  if (!isset($severity_mapping)) {
    $config = \Drupal::configFactory()
      ->getEditable('tmgmt_smartling_log_settings.settings')
      ->get('severity_mapping');
    $severity_mapping = Yaml::decode($config);
  }
  $this->severity_mapping = $severity_mapping;
  parent::__construct($channel);
}