original_string: private function log($id, $domain, $locale)
      {
          if (null === $domain) {
              $domain = 'messages';
          }
  
          $id = (string) $id;
          $catalogue = $this->translator->getCatalogue($locale);
          if ($catalogue->defines($id, $domain)) {
              return;
          }
  
          if ($catalogue->has($id, $domain)) {
              $this->logger->debug('Translation use fallback catalogue.', ['id' => $id, 'domain' => $domain, 'locale' => $catalogue->getLocale()]);
          } else {
              $this->logger->warning('Translation not found.', ['id' => $id, 'domain' => $domain, 'locale' => $catalogue->getLocale()]);
          }
      }
code: private function log($id, $domain, $locale)
      {
          if (null === $domain) {
              $domain = 'messages';
          }
  
          $id = (string) $id;
          $catalogue = $this->translator->getCatalogue($locale);
          if ($catalogue->defines($id, $domain)) {
              return;
          }
  
          if ($catalogue->has($id, $domain)) {
              $this->logger->debug('Translation use fallback catalogue.', ['id' => $id, 'domain' => $domain, 'locale' => $catalogue->getLocale()]);
          } else {
              $this->logger->warning('Translation not found.', ['id' => $id, 'domain' => $domain, 'locale' => $catalogue->getLocale()]);
          }
      }
code_tokens: private function log ( $ id , $ domain , $ locale ) { if ( null === $ domain ) { $ domain = 'messages' ; } $ id = ( string ) $ id ; $ catalogue = $ this -> translator -> getCatalogue ( $ locale ) ; if ( $ catalogue -> defines ( $ id , $ domain ) ) { return ; } if ( $ catalogue -> has ( $ id , $ domain ) ) { $ this -> logger -> debug ( 'Translation use fallback catalogue.' , [ 'id' => $ id , 'domain' => $ domain , 'locale' => $ catalogue -> getLocale ( ) ] ) ; } else { $ this -> logger -> warning ( 'Translation not found.' , [ 'id' => $ id , 'domain' => $ domain , 'locale' => $ catalogue -> getLocale ( ) ] ) ; } }
docstring: Logs for missing translations.
  
  @param string      $id
  @param string|null $domain
  @param string|null $locale
docstring_tokens: Logs for missing translations .