开发者

How to customize Sinatra logging level

I redirected Sinatra output to log file. I was wondering how to skip all requests and write only errors Eg.

lo开发者_如何转开发calhost - - [22/Dec/2010:15:47:32 AUSEDT] "GET /db/OMSGDV03/tlm HTTP/1.1" 200 93
    - -> /A/B/C

shouldn't appear


You can turn off requests logging with:

set :logging, false
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜