public function get($key, $locale = null)
    {
        return $this->translator->get("log-viewer::levels.$key", [], $locale ?: $this->getLocale());
    }
public function get($key, $locale = null)
    {
        return $this->translator->get("log-viewer::levels.$key", [], $locale ?: $this->getLocale());
    }
public function get ( $ key , $ locale = null ) { return $ this -> translator -> get ( "log-viewer::levels.$key" , [ ] , $ locale ? : $ this -> getLocale ( ) ) ; }
Get the translated level.

@param  string       $key
@param  string|null  $locale

@return string
Get the translated level .