 
     type     = 'GET'
     endPoint = '/-/api/logs'
+    args     = []
+
+    if (scope = @getOption 'scope') and scope isnt 'all'
+      args.push "scope=#{scope}"
+
+    if q = options.query
+      args.push "q=#{query}"
+
+    if args.length > 0
+      endPoint = "#{endPoint}?#{args.join ','}"
 
     doXhrRequest { endPoint, type }, (err, res) ->
-      console.log ">>>>>>", err, res
       callback err, res
 
 

    super options, data


  fetchLogs: ->

    return if @isFetching



    @isFetching = yes

    @fetchLogsFromAPI options, (err, res) =>

      return  if showError err

      { data: { logs } } = res
      @listLogs logs

      @isFetching = no
