April 2, 2020
Estimated Post Reading Time ~

View JSP Logging statements in CQ5/AEM

Use Case -: You want to see the log statements written inside your jsp files in CQ5.

Is the scenario Valid-: As per the recommendation by MVC the jsp should never have scriplets. But if there is a necessity yes we can have logged in jsp and can see them as well wondering how? Click on the screenshot below

As highlighted, add a new logger configuration and mention the logging level, file name and pattern. The most important thing is jsp files in cq5 reside in package org.apache.jsp. Once this is mentioned you start seeing the logs in the file name you mentioned.



By aem4beginner

No comments:

Post a Comment

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