Rack::CommonLogger¶ ↑ Sinatra has logging support, but it's nearly impossible to log to a file and to the stdout (like Rails does). However, there is a little trick you can use to log to stdout and to a file: require 'sinatra' configure do # logging is enabled by default in classic style applications, # so `enable :logging` is not needed file = File.new("#{settings.root}/log/#{settings.environment