Eva\EvaEngine\Error\CLIErrorHandler::getLogger PHP Method

getLogger() public static method

public static getLogger ( ) : boolean | null
return boolean | null
    public static function getLogger()
    {
        if (static::$logger !== false) {
            return static::$logger;
        }
        $di = DI::getDefault();
        $config = $di->get('config');
        if (!isset($config->error->disableLog) || isset($config->error->disableLog) && $config->error->disableLog || empty($config->error->logPath)) {
            return static::$logger = null;
        }
        static::$logger = new FileLogger($config->error->logPath . '/' . 'system_error_' . date('Ymd') . '.log');
        return static::$logger;
    }