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
        
    

3 comments:

  1. Superb i really enjoyed very much with this article here. Really its a amazing article i had

    ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your updation.
    seo company in chennai

    ReplyDelete
  2. Wonderful bloggers like yourself who would positively reply encouraged me to be more open and engaging in commenting. So know it's helpful..
    SEO Company in Chennai
    Digital Marketing Company in Chennai

    ReplyDelete
  3. This article is very much helpful and i hope this will be an useful information for the needed one. Keep on updating these kinds of informative things...
    Top web development services in bangalore
    ECommerce Website developers in bangalore
    Outsource magento ecommerce services india

    ReplyDelete