Class: Dexter::CsvLogTableParser

Inherits:
CsvLogParser show all
Defined in:
lib/dexter/csv_log_table_parser.rb

Constant Summary

Constants inherited from CsvLogParser

Dexter::CsvLogParser::FIRST_LINE_REGEX

Constants inherited from LogParser

LogParser::DETAIL_LINE, LogParser::LINE_SEPERATOR, LogParser::REGEX

Constants included from Logging

Logging::COLOR_CODES

Instance Attribute Summary

Attributes inherited from LogParser

#once

Instance Method Summary collapse

Methods inherited from CsvLogParser

#process_csv_row

Methods inherited from LogParser

#initialize

Methods included from Logging

#colorize, #log, #output

Constructor Details

This class inherits a constructor from Dexter::LogParser

Instance Method Details

#performObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/dexter/csv_log_table_parser.rb', line 3

def perform
  last_log_time = Time.at(0).iso8601(3)

  loop do
    @logfile.csvlog_activity(last_log_time).each do |row|
      process_csv_row(row["message"], row["detail"])
      last_log_time = row["log_time"]
    end

    break

    # possibly enable later
    # break if once
    # sleep(1)
  end
end