Sha256: 9f49b8feba4ba33f8a39b8c827af669ed84f6deb3406531fff1b1a81db035135

Contents?: true

Size: 274 Bytes

Versions: 7

Compression:

Stored size: 274 Bytes

Contents

require 'sinatra/base'

class SinatraApp < Sinatra::Base
  # This prevents Sinatra from using the default logger.
  set :logging, nil

  get '/' do
    puts logger.class.name
    logger.debug 'Logging from Sinatra!'

    "Log test on Sinatra #{Sinatra::VERSION}"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mongo_request_logger-0.6.0 spec/testapp/app.rb
mongo_request_logger-0.5.0 spec/testapp/app.rb
mongo_request_logger-0.4.0 spec/testapp/app.rb
mongo_request_logger-0.3.1 spec/testapp/app.rb
mongo_request_logger-0.3.0 spec/testapp/app.rb
mongo_request_logger-0.2.7 spec/testapp/app.rb
mongo_request_logger-0.2.6 spec/testapp/app.rb