Sha256: 0460430ad392d734cdd626bed1dac447ad0d1929160964cef197268cc793582c
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
module Dexter class StderrLogParser < LogParser def perform process_stderr(@logfile.each_line) end def process_stderr(rows) active_line = nil duration = nil rows.each do |line| if active_line if line.include?(DETAIL_LINE) add_parameters(active_line, line.chomp.split(DETAIL_LINE)[1]) elsif line.include?(LINE_SEPERATOR) process_entry(active_line, duration) active_line = nil else active_line << line end end if !active_line && (m = REGEX.match(line.chomp)) duration = m[1].to_f active_line = m[3] end end process_entry(active_line, duration) if active_line end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgdexter-0.4.3 | lib/dexter/stderr_log_parser.rb |