def find(selector, options = {}, &block)
      entries = []
      @collection.find(selector, options) do |cursor|
        cursor.each do |doc|
          entry = LogEntry.new(doc[TIME], doc[SEVERITY], doc[MESSAGE], doc[PROGNAME], doc[PID], doc[UNIT_OF_WORK_ID])
          if block_given?
            yield entry
          else
            entries << entry
          end
        end
      end
      block_given? ? nil : entries
    end
def find(selector, options = {}, &block)
      entries = []
      @collection.find(selector, options) do |cursor|
        cursor.each do |doc|
          entry = LogEntry.new(doc[TIME], doc[SEVERITY], doc[MESSAGE], doc[PROGNAME], doc[PID], doc[UNIT_OF_WORK_ID])
          if block_given?
            yield entry
          else
            entries << entry
          end
        end
      end
      block_given? ? nil : entries
    end
Retrieve Lumberjack::LogEntry objects from the MongoDB collection. If a block is given, it will be yielded to
 with each entry. Otherwise, it will return an array of all the entries.