Sha256: 0c9eb2745838f376f9a86dfd96b2c809afc4f895db0f1202736538da77d94301

Contents?: true

Size: 325 Bytes

Versions: 3

Compression:

Stored size: 325 Bytes

Contents

require 'logger'

module Headsail
  class Event
    def initialize(event_name)
      @event_name = event_name
      @logger = Logger.new(STDOUT)
    end

    def request(http, method)
      message = "#{@event_name} / #{method} REQUEST / #{http.code} - #{http.code_status.to_s}"
      @logger.info(message)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
headsail-0.1.11 lib/headsail/event.rb
headsail-0.1.1 lib/headsail/event.rb
headsail-0.1.0 lib/headsail/event.rb