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 [^:]+): (.+)/
LINE_SEPERATOR =
":  ".freeze
DETAIL_LINE =
"DETAIL:  ".freeze

Constants included from Logging

Dexter::Logging::COLOR_CODES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Logging

#colorize, #log, #output

Constructor Details

#initialize(logfile, collector) ⇒ LogParser

Returns a new instance of LogParser.



11
12
13
14
# File 'lib/dexter/log_parser.rb', line 11

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

Instance Attribute Details

#onceObject

Returns the value of attribute once.



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

def once
  @once
end