public static function log($message, $type = DataLogger::INFO)
    {
        if (null === self::$logger) {
            return;
        }

        if (!method_exists(self::$logger, $type)) {
            $exceptionMessage = sprintf('Logger does not support the %s method.', $type);

            throw new \InvalidArgumentException($exceptionMessage);
        }

        self::$logger->$type($message);
    }
public static function log($message, $type = DataLogger::INFO)
    {
        if (null === self::$logger) {
            return;
        }

        if (!method_exists(self::$logger, $type)) {
            $exceptionMessage = sprintf('Logger does not support the %s method.', $type);

            throw new \InvalidArgumentException($exceptionMessage);
        }

        self::$logger->$type($message);
    }
public static function log ( $ message , $ type = DataLogger :: INFO ) { if ( null === self :: $ logger ) { return ; } if ( ! method_exists ( self :: $ logger , $ type ) ) { $ exceptionMessage = sprintf ( 'Logger does not support the %s method.' , $ type ) ; throw new \ InvalidArgumentException ( $ exceptionMessage ) ; } self :: $ logger -> $ type ( $ message ) ; }
Logs the given message

@param        $message
@param string $type
Logs the given message