Whenever runnning in production, RoR displays only warnings and errors, which is fine.
Howver, the logger does not display detailed information about the error : no timestamp, no IP address, no user request.
I tried creating a custom Logger, but it does not allow me to get the IP address and actual user request without using evil methods (since it's within a model).
Ideally, I'd like to have messages such as :
Started GET "/api/request?" for 89.80.x.x at Mon Nov 21 17:29:08 +0100 2011
And the strack trace of the error below. But these should only be displayed for warnings and errors, and the end user should not see them( so consider_all_requests_local should be off).
Any way to achieve this ?