module Nuggets::LogParser::Rails
Constants
- ITEMS
Log line patterns
- PREFIX_RE
Log line prefix
- SEPARATOR_RE
Log entry separator
Public Instance Methods
parse_line(line, entry = {}) { || ... }
click to toggle source
# File lib/nuggets/log_parser/rails.rb 200 def parse_line(line, entry = {}) 201 ITEMS.each { |key, item| 202 if md = item[:re].match(line) 203 if key == :processing 204 yield if block_given? 205 entry[:pid], entry[:host] = md[1], md[2] 206 end 207 208 item[:proc][entry, md] 209 210 break 211 end 212 } 213 214 entry 215 end