You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2015/05/22 10:55:17 UTC

[jira] [Created] (SLING-4739) Log Tracer - To enable logs for specific category at specific level and only for specific request

Chetan Mehrotra created SLING-4739:
--------------------------------------

             Summary: Log Tracer - To enable logs for specific category at specific level and only for specific request
                 Key: SLING-4739
                 URL: https://issues.apache.org/jira/browse/SLING-4739
             Project: Sling
          Issue Type: New Feature
          Components: Extensions
            Reporter: Chetan Mehrotra
            Assignee: Chetan Mehrotra
             Fix For: Log Tracer 1.0.0


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"

{noformat}
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/
{noformat}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)