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.