code: 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);
      }
docs: Logs the given message
  
  @param        $message
  @param string $type