From: luke gruber Date: 2012-06-25T04:10:43+09:00 Subject: Re: Sinatra and Shotgun error I used to play with Sinatra a lot, as well as Shotgun and just looked through an old project. It had code like this: before do # if using shotgun, create a custom log format !settings.shotgun || begin logger.class_eval do cattr_accessor :format self.format = <<-HTML #{Time.now} #{request.request_method} #{request.fullpath} Content-Length: #{request.content_length} Params: #{request.params} HTML end logger.info logger.format end end This was around a year ago so not saying everything will work as is, but it worked for me then as a sort of hacky solution. Don't know why i was overriding the accessor on each request and not just passing in parameters to the format method, but hey, it was a year ago :) As for running webrick with thin installed, can't you just do set :server, 'webrick' see https://github.com/sinatra/sinatra/blob/master/lib/sinatra/base.rb#L1622, thin gets tried before webrick, but you can customize that with the set method (can be an array of servers to try in that order, or a string Hope it helps, -Luke -- Posted via http://www.ruby-forum.com/.