class SweetLogger::Middleware
Public Class Methods
new(*args, &block)
click to toggle source
Calls superclass method
# File lib/sweet_logger/middleware.rb, line 7 def initialize(*args, &block) super @logstash = SweetLogger::Logstash.new end
Public Instance Methods
call(env)
click to toggle source
Calls superclass method
# File lib/sweet_logger/middleware.rb, line 13 def call(env) @logstash.wrap env['PATH_INFO'] do super env end end