Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-4739

Log Tracer - To enable logs for specific category at specific level and only for specific request

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Log Tracer 0.0.2
    • Extensions
    • None

    Description

      Tracer [1] simplifies enabling the logs for specific category at specific level and only for specific request. It provides a very fine level of control via config provided as part of HTTP request around how the logging should be performed for given category.

      For e.g. determining what nodes are written for a given POST request can be simply done by including an extra request parameter "tracer"

      curl -D - -u admin:admin \
       -d "./jcr:content/jcr:title=Summer Collection" \
       -d ":name=summer-collection" \
       -d "./jcr:primaryType=sling:Folder" \
       -d "./jcr:content/jcr:primaryType=nt:unstructured" \
       -d "tracers=oak-writes" \
       http://localhost:8080/content/dam/
      

      One can also specify actual categories as part of request param itself. For complete details refer to [1] (docs to be moved to Sling site)

      Refer to [1] for related discussion
      [1] http://markmail.org/thread/mijnl2mpxu4nzqkb

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: