I am using log4j to enter my Java project. My conversion scheme is as follows.
ConversionPattern=%d{MMMMM dd,yyyy HH:mm:ss} %-5p [ %C{1} - %M() - %L ] - %m%n
Now for all Java classes, it outputs the result as follows:
February 03,2012 15:18:41 DEBUG [ RadiusClientConfigBean - initialize() - 63 ] - RadiusClientsConfigBean.initialize() Called
But for JSP pages, it prints like:
February 03,2012 15:19:00 DEBUG [ managevoippolicy_jsp - _jspService() - 443 ] - VoIP Policies = 4
which is not the actual line number of this JSP page. How to print line numbers for JSP pages.
source share