src/Phassets/Factory.php
public function buildLogger($class, Configurator $configurator)
    {
        if (!class_exists($class) || !is_subclass_of($class, Logger::class)) {
            $class = "\\Phassets\\Loggers\\$class";
        }

        if (class_exists($class) && is_subclass_of($class, Logger::class)) {
            return new $class($configurator);
        }

        return false;
    }
public function buildLogger($class, Configurator $configurator)
    {
        if (!class_exists($class) || !is_subclass_of($class, Logger::class)) {
            $class = "\\Phassets\\Loggers\\$class";
        }

        if (class_exists($class) && is_subclass_of($class, Logger::class)) {
            return new $class($configurator);
        }

        return false;
    }
public function buildLogger ( $ class , Configurator $ configurator ) { if ( ! class_exists ( $ class ) || ! is_subclass_of ( $ class , Logger :: class ) ) { $ class = "\\Phassets\\Loggers\\$class" ; } if ( class_exists ( $ class ) && is_subclass_of ( $ class , Logger :: class ) ) { return new $ class ( $ configurator ) ; } return false ; }
Creates a Logger instance.

@param string $class Fully qualified class name of a Logger class
@param Configurator $configurator Currently used Configurator of Phassets

@return bool|Logger Created instance of the provided Logger; false on failure
Creates a Logger instance .