Sha256: f2ba8c79a6f2e8bf30579f3bdb7d6c5e660385c7849185b12eb6e32374977698
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
module Rad module Processors class HTTPLogger < Processor def call if workspace.request? and workspace.params? method, path, ip, time, format = workspace.request.request_method, workspace.path, workspace.request.ip, (workspace.start_time || Time.now), workspace.params.format logger.info " Started '#{path}' as '#{format}' (for #{ip} at #{time.to_s} with #{method})" end next_processor.call end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rad_core-0.0.13 | lib/rad/http/processors/http_logger.rb |