Class: Dexter::CsvLogTableParser
- Inherits:
-
CsvLogParser
- Object
- LogParser
- CsvLogParser
- Dexter::CsvLogTableParser
- 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
Instance Attribute Summary
Attributes inherited from LogParser
Instance Method Summary collapse
Methods inherited from CsvLogParser
Methods inherited from LogParser
Methods included from Logging
Constructor Details
This class inherits a constructor from Dexter::LogParser
Instance Method Details
#perform ⇒ Object
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 |