Sha256: e147ba3f7a727c4c8ac5e360f975f8671e7873b37d2a2d971b05744a8b48e5b7
Contents?: true
Size: 376 Bytes
Versions: 7
Compression:
Stored size: 376 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.expand_path('../../lib', File.dirname(__FILE__)) require 'wukong/script' require_relative './logline' class ApacheLogParser < Wukong::Streamer::LineStreamer # create a Logline object from each record and serialize it flat to disk def process line yield Logline.parse(line) end end Wukong.run( ApacheLogParser )
Version data entries
7 entries across 7 versions & 2 rubygems