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()]);
        }
    }
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()]);
        }
    }
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 ( ) ] ) ; } }
Logs for missing translations.

@param string      $id
@param string|null $domain
@param string|null $locale
Logs for missing translations .