I've been looking into $subject. There were several formatting issues with the current logs like incorrect time stamps and not recording bytes sent when this information is available through HTTP Headers. I've managed to fix these, but there's another issue with the current implementation:
The current implementation logs requests and responses independent of each other. This causes additional response log's to print with only a time stamp and a status code. I think ideally the status code should be included as part of the corresponding request log (AFAIU, this is how common log format is used in squid proxy). But in order to do this, we have to map requests and responses - and I think this might be an unnecessary use of memory. Should we attempt to fix this? Here's a sample of the current output: localhost:9000 - - [23/Sep/2013:13:41:52 +0530] "POST /services/SimpleStockQuoteService HTTP/1.1" - - "-" "Synapse-PT-HttpComponents-NIO" - - [23/Sep/2013:13:41:52 +0530] "- - " 500 - "-" "-" -- *Ravi Undupitiya* Software Engineer; WSO2 Inc.; http://wso2.com * * *E-mail: [email protected] **M: **+94 772 930 712* * *Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
