Method: Indy#with

Defined in:
lib/indy/indy.rb

#with(params = :default) ⇒ Object

Specify the log format to use as the comparison against each entry within the log file that has been specified.

Examples:

Log formatted as - HH:MM:SS Message


Indy.search(LOG_FILE).with(/^(\d{2}.\d{2}.\d{2})\s*(.+)$/,:time,:message)


69
70
71
72
73
74
75
# File 'lib/indy/indy.rb', line 69

def with(params=:default)
  if params.kind_of?(String) && params.match(/^Indy::/)
    params = params.constantize
  end
  @search.source.log_definition = LogDefinition.new(params)
  self
end