Wednesday 17 December 2014

Logging all the http request and response that is coming to Jetty Server

Problem: Logging all the http request and response that is coming to Jetty Server

Prerequisite:  Configure logback as your logging frame work

Solution:
Refer variables fullRequest and fullResponse in your  logback-access.xml

Snippet
 
 
        ${OPENSHIFT_SPRINGJETTYONODE_DIR}/logs/access.log
        
            logs/access-%i.log.gz
            1
            3
        

        
            20MB
        
        
            %fullRequest%n%n%fullResponse
        
    

1 comment: