April 12, 2020
Estimated Post Reading Time ~

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 set up with this prefixed package.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.