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
精彩评论