Example #1
0
 public function __construct($message = "", $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, $code, $previous);
     if ($this->logException) {
         \GameScan\Core\Tools\LoggerFactory::getLogger()->error("Exception thrown : " . $this);
     }
 }
Example #2
0
 public function setLocale($locale)
 {
     $this->checkHost();
     if ($this->isAvailableLocale($locale)) {
         $this->locale = $locale;
     } else {
         LoggerFactory::getLogger()->info("The locale {$locale} isn't available for the host " . $this->getHost());
     }
 }