def get_logs(options = nil, length = nil, type = nil)
      if options.is_a?(Hash)
        offset = options.delete('offset') || options.delete(:offset)
        length = options.delete('length') || options.delete(:length)
        type = options.delete('type') || options.delete(:type)
        request_options = options.delete('request_options') || options.delete(:request_options)
      else
        # Deprecated def get_logs(offset, length, type)
        offset = options
      end
      length ||= 10
      type = 'all' if type.nil?
      type = type ? 'error' : 'all' if type.is_a?(true.class)
      request_options ||= {}

      get(Protocol.logs(offset, length, type), :write, request_options)
    end
def get_logs(options = nil, length = nil, type = nil)
      if options.is_a?(Hash)
        offset = options.delete('offset') || options.delete(:offset)
        length = options.delete('length') || options.delete(:length)
        type = options.delete('type') || options.delete(:type)
        request_options = options.delete('request_options') || options.delete(:request_options)
      else
        # Deprecated def get_logs(offset, length, type)
        offset = options
      end
      length ||= 10
      type = 'all' if type.nil?
      type = type ? 'error' : 'all' if type.is_a?(true.class)
      request_options ||= {}

      get(Protocol.logs(offset, length, type), :write, request_options)
    end
Return last logs entries.

 @param options - accepts those keys:
   - offset Specify the first entry to retrieve (0-based, 0 is the most recent log entry) - Default = 0
   - length Specify the maximum number of entries to retrieve starting at offset. Maximum allowed value: 1000 - Default = 10
   - type Type of log entries to retrieve ("all", "query", "build" or "error") - Default = 'all'
   - request_options contains extra parameters to send with your query