3 Replies Latest reply on Nov 7, 2012 7:24 AM by dbasic

    Custom Logger/Writer configurations in CQ5

    dbasic

      Hi all,

       

      I've created custom logger/writer configurations in JCR as explained on this page: http://dev.day.com/docs/en/cq/5-4/deploying/configuring_cq.html#Loggers and Writers for Individual Services .

       

      On the page above, there is some instruction about defining <identifier> for every configuration, eg.

      org.apache.sling.commons.log.LogManager.factory.config-COMMONSDEBUG

      org.apache.sling.commons.log.LogManager.factory.writer-COMMONSDEBUGW

      (the configuration identifier is after dash sign).

       

      I noticed in Felix console that instead of having the configurations with PIDs like the above, there are configurations with following PIDs:

      org.apache.sling.commons.log.LogManager.factory.config.17751745-ff90-4c2d-870a-91666da5beb 5

      org.apache.sling.commons.log.LogManager.factory.writer.0100e179-72af-4eb6-a92b-45b19cff2ae 6

       

      Is it possible to override this behavior, ie. to have the same PIDs in both JCR and Felix console (COMMONSDEBUG instead of 17751745-ff90-4c2d-870a-91666da5beb5, COMMONSDEBUGW instead of 0100e179-72af-4eb6-a92b-45b19cff2ae6)?

       

      Regards,

      Danijel