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.38.2 test/sinatra_classic_app.rb
logjam_agent-0.38.1 test/sinatra_classic_app.rb
logjam_agent-0.38.0 test/sinatra_classic_app.rb
logjam_agent-0.37.1 test/sinatra_classic_app.rb
logjam_agent-0.37.0 test/sinatra_classic_app.rb
logjam_agent-0.36.0 test/sinatra_classic_app.rb
logjam_agent-0.35.1 test/sinatra_classic_app.rb
logjam_agent-0.35.0 test/sinatra_classic_app.rb
logjam_agent-0.34.3 test/sinatra_classic_app.rb
logjam_agent-0.34.2 test/sinatra_classic_app.rb
logjam_agent-0.34.1 test/sinatra_classic_app.rb
logjam_agent-0.34.0 test/sinatra_classic_app.rb
logjam_agent-0.33.3 test/sinatra_classic_app.rb
logjam_agent-0.33.2 test/sinatra_classic_app.rb
logjam_agent-0.33.1 test/sinatra_classic_app.rb
logjam_agent-0.33.0 test/sinatra_classic_app.rb
logjam_agent-0.32.4 test/sinatra_classic_app.rb
logjam_agent-0.32.3 test/sinatra_classic_app.rb
logjam_agent-0.32.2 test/sinatra_classic_app.rb
logjam_agent-0.32.1 test/sinatra_classic_app.rb