src/Log/Logger.php
private static function log(string $message, int $level) {
        \Logger::configure(self::getConfiguration());
        $logger = \Logger::getRootLogger();
        $logger->setLevel(self::getLoggerLevel());

        switch ($level) {
            case Logger::DEBUG:
                $logger->debug($message);
                break;
            case Logger::INFO:
                $logger->info($message);
                break;
            case Logger::WARN:
                $logger->warn($message);
                break;
            case Logger::ERROR:
                $logger->error($message);
                break;
            case Logger::FATAL:
                $logger->fatal($message);
                break;
            case Logger::TRACE:
                $logger->trace($message);
                break;
            default:
        }
    }
private static function log(string $message, int $level) {
        \Logger::configure(self::getConfiguration());
        $logger = \Logger::getRootLogger();
        $logger->setLevel(self::getLoggerLevel());

        switch ($level) {
            case Logger::DEBUG:
                $logger->debug($message);
                break;
            case Logger::INFO:
                $logger->info($message);
                break;
            case Logger::WARN:
                $logger->warn($message);
                break;
            case Logger::ERROR:
                $logger->error($message);
                break;
            case Logger::FATAL:
                $logger->fatal($message);
                break;
            case Logger::TRACE:
                $logger->trace($message);
                break;
            default:
        }
    }
private static function log ( string $ message , int $ level ) { \ Logger :: configure ( self :: getConfiguration ( ) ) ; $ logger = \ Logger :: getRootLogger ( ) ; $ logger -> setLevel ( self :: getLoggerLevel ( ) ) ; switch ( $ level ) { case Logger :: DEBUG : $ logger -> debug ( $ message ) ; break ; case Logger :: INFO : $ logger -> info ( $ message ) ; break ; case Logger :: WARN : $ logger -> warn ( $ message ) ; break ; case Logger :: ERROR : $ logger -> error ( $ message ) ; break ; case Logger :: FATAL : $ logger -> fatal ( $ message ) ; break ; case Logger :: TRACE : $ logger -> trace ( $ message ) ; break ; default : } }
logs a message to the console

@param string $message
@param int $level
logs a message to the console