<?php namespace GameScan\Core\Exceptions;

class Base extends \Exception
{
    protected $logException = true;

    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);
        }
    }
}

<?php namespace GameScan\Core\Exceptions;

class Base extends \Exception
{
    protected $logException = true;

    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);
        }
    }
}

Use namespace so we avoid ambiguous class name
Use namespace so we avoid ambiguous class name
