Sha256: 4ec9ab3abd4bddca7855558fd59f21e30b1f9d78d7c71a3e4d872228a583d148
Contents?: true
Size: 645 Bytes
Versions: 22
Compression:
Stored size: 645 Bytes
Contents
$:.unshift File.expand_path('../../lib', __FILE__) require 'logjam_agent/sinatra' use LogjamAgent::Sinatra::Middleware configure do set :root, File.expand_path('../..', __FILE__) set :environment, :test set :loglevel, :debug setup_logjam_logger LogjamAgent.application_name = "myapp" LogjamAgent.add_forwarder( :zmq, :host => "localhost", :port => 9604, :linger => 10, :snd_hwm => 10, :rcv_hwm => 10, :rcv_timeo => 10, :snd_timeo => 10 ) LogjamAgent.parameter_filters << :password end get '/index' do action_name "Simple#index" logger.info 'Hello World!' 'Hello World!' end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
logjam_agent-0.32.0 | test/sinatra_classic_app.rb |
logjam_agent-0.31.0 | test/sinatra_classic_app.rb |