Class: Dexter::LogParser

Inherits:
Object
  • Object
show all
Includes:
Logging
Defined in:
lib/dexter/log_parser.rb

Constant Summary collapse

REGEX =
/duration: (\d+\.\d+) ms  (statement|execute [^:]+): (.+)/

Constants included from Logging

Dexter::Logging::COLOR_CODES

Instance Method Summary collapse

Methods included from Logging

#colorize, #log, #output

Constructor Details

#initialize(logfile, collector) ⇒ LogParser

Returns a new instance of LogParser.



7
8
9
10
# File 'lib/dexter/log_parser.rb', line 7

def initialize(logfile, collector)
  @logfile = logfile
  @collector = collector
end