Class: Dexter::LogParser
- Inherits:
-
Object
- Object
- Dexter::LogParser
- Includes:
- Logging
- Defined in:
- lib/dexter/log_parser.rb
Direct Known Subclasses
CsvLogParser, JsonLogParser, PgStatActivityParser, SqlLogParser, StderrLogParser
Constant Summary collapse
- REGEX =
/duration: (\d+\.\d+) ms (statement|execute [^:]+): (.+)/- LINE_SEPERATOR =
": ".freeze
- DETAIL_LINE =
"DETAIL: ".freeze
Constants included from Logging
Instance Attribute Summary collapse
-
#once ⇒ Object
Returns the value of attribute once.
Instance Method Summary collapse
-
#initialize(logfile, collector) ⇒ LogParser
constructor
A new instance of LogParser.
Methods included from Logging
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
#once ⇒ Object
Returns the value of attribute once.
9 10 11 |
# File 'lib/dexter/log_parser.rb', line 9 def once @once end |