Thursday, 1 September 2011

To enable logging for JSP pages

Could you also include the information on how we can add the org.apache.sling.commons.log.names values for those which are inside a jsp page. I believe the value needs to be something like apps.myapp if the center.jsp is inside apps/myapps/center.jsp.
However this is not working for me.

Hi, JSPs are compiled into packages below org.apache.jsp with the script path converted to further package parts. So in your example the /apps/myapps/center.jsp is compiled into the package: org.apache.jsp.apps.myapps.

Thus the logger must be setup with this prefixed package.

2 comments:

  1. The title has grabbed my attention towards your article. The post is truly amazing. It has written in a significant way with all supportive data. The way you treat your topic is very gentle and your ideas make the article perfect. You have chosen good topics which are very good. I know a good topic selection is a difficult task as I am a writer at best essay writing service. I got good tips from you blogs for my career. I hope you will make such amazing posts more and more.

    ReplyDelete
  2. In my opinion, advices from https://dissertationowl.com/blog/research-project-methodology will help you to write high quality research project. Methodology means a lot

    ReplyDelete