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 logs  in jsp and can see them as well wondering how? Click on the screeshot below

As highlighted , add a new logger configuration and mention the logging leve, 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 file name you mentioned.

jsp logging in cq5

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s