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 [^:]+): (.+)/
Constants included from Logging
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.
7 8 9 10 |
# File 'lib/dexter/log_parser.rb', line 7 def initialize(logfile, collector) @logfile = logfile @collector = collector end |