예제 #1
0
파일: Base.php 프로젝트: game-scan/core
 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);
     }
 }
예제 #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());
     }
 }