Sha256: 51d7a708dbc2fb583f8aab6c40c00f5eee9f808ba289bb1a157a457c99112f91

Contents?: true

Size: 448 Bytes

Versions: 24

Compression:

Stored size: 448 Bytes

Contents

rad.http

class HttpLogger < Rad::Conveyors::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 "RAD started '#{path}' as '#{format}' (for #{ip} at #{time.to_s} with #{method})"
    end
    
    next_processor.call
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
rad_core-0.2.6 lib/rad/http/processors/http_logger.rb
rad_core-0.2.5 lib/rad/http/processors/http_logger.rb
rad_core-0.2.4 lib/rad/http/processors/http_logger.rb
rad_core-0.2.3 lib/rad/http/processors/http_logger.rb
rad_core-0.2.2 lib/rad/http/processors/http_logger.rb
rad_core-0.2.1 lib/rad/http/processors/http_logger.rb
rad_core-0.2.0 lib/rad/http/processors/http_logger.rb
rad_core-0.0.30 lib/rad/http/processors/http_logger.rb
rad_core-0.0.29 lib/rad/http/processors/http_logger.rb
rad_core-0.0.28 lib/rad/http/processors/http_logger.rb
rad_core-0.0.27 lib/rad/http/processors/http_logger.rb
rad_core-0.0.26 lib/rad/http/processors/http_logger.rb
rad_core-0.0.25 lib/rad/http/processors/http_logger.rb
rad_core-0.0.24 lib/rad/http/processors/http_logger.rb
rad_core-0.0.23 lib/rad/http/processors/http_logger.rb
rad_core-0.0.22 lib/rad/http/processors/http_logger.rb
rad_core-0.0.21 lib/rad/http/processors/http_logger.rb
rad_core-0.0.20 lib/rad/http/processors/http_logger.rb
rad_core-0.0.19 lib/rad/http/processors/http_logger.rb
rad_core-0.0.18 lib/rad/http/processors/http_logger.rb