public function register(Container $container)
    {
        /** @var Config $configuration */
        $configuration = $container['config'];

        $logger = Logger::get();
        $logger->setLogLevel($configuration->logLevel);

        return $logger;
    }
public function register(Container $container)
    {
        /** @var Config $configuration */
        $configuration = $container['config'];

        $logger = Logger::get();
        $logger->setLogLevel($configuration->logLevel);

        return $logger;
    }
public function register ( Container $ container ) { /** @var Config $configuration */ $ configuration = $ container [ 'config' ] ; $ logger = Logger :: get ( ) ; $ logger -> setLogLevel ( $ configuration -> logLevel ) ; return $ logger ; }
Create the Logger Service
@param Container $container
@return \Psr\Log\LoggerInterface
Create the Logger Service