如何让Unicorn在开发日志中显示帖子参数?

Bra*_*don 4 ruby logging webserver ruby-on-rails unicorn

我刚开始尝试使用Unicorn(超薄),到目前为止,我确实喜欢输出的格式,除了它似乎没有显示各种请求的post参数.我真的很喜欢这个功能来帮助调试表单等....

独角兽:

20:26:14 web.1     | 127.0.0.1 - - [17/Jan/2012 20:26:14] "POST /basic_simulations HTTP/1.1" 422 24259 0.4838
Run Code Online (Sandbox Code Playgroud)

我想要的......(这是来自webrick):

Started POST "/basic_simulations" for 127.0.0.1 at 2012-01-17 20:27:22 -0700
Processing by BasicSimulationsController#create as HTML
Parameters: {"utf8"=>"?",
"authenticity_token"=>"xxxxx", "basic_simulation"=>{"x1706"=>"1"}, "commit"=>"Submit my answers"}
Run Code Online (Sandbox Code Playgroud)

是否有一些配置选项或类似的东西我可以打开此功能?谢谢!

bln*_*lnc 6

更新:

将其添加到config/application.rb文件中:

config.logger = Logger.new(STDOUT)
Run Code Online (Sandbox Code Playgroud)

更多信息在这里