Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I run Unicorn for local dev, It prints these nice request logs that looks like :

127.0.0.1 - - [16/Jul/2012 13:04:09] "GET %2Findex.html HTTP/1.1" 200 5906 0.0023 127.0.0.1 - - [16/Jul/2012 13:04:09] "GET /rails.png HTTP/1.1" 200 6646 0.0056 127.0.0.1 - - [16/Jul/2012 13:04:09] "GET %2Findex.html HTTP/1.1" 200 5906 0.0009 127.0.0.1 - - [16/Jul/2012 13:04:09] "GET /rails.png HTTP/1.1" 200 6646 0.0056

How can I have such logs for production ?

Is that gonna be expensive to log ?

share|improve this question
    
In production , this usually is handled by the likes of apache or nginx in their log folder –  RC1140 Jul 16 '12 at 12:22
    
Our rails app(running in unicorn) is reporting sub-second times for processing requests and nginx in front is reporting 10s of seconds. Trying to figure out why thats the case. –  letronje Jul 17 '12 at 4:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.