Thanks for the replies. I wonder if this method is applicable to other
servers like Apache. What happen if I do not have the rights to modify the
pages or the pages are not JSPs?
Regards,
TK
On 10/21/05, Mauricio Fernandez A. <[EMAIL PROTECTED]> wrote:
>
> TK,
>
> If i understand what you want
Look at the javadocs for AccessLogValve. It allows for conditional logging.
-Tim
TK wrote:
Hi,
I am looking for ways to associate each object recorded in the log file with
the corresponding page requested. Say, for example,
Page A contains objects p, q, r, s
Page B contains onjects x, y, z
Re
Or if you are using commons logging
<%@ page import="org.apache.commons.logging.Log" %>
<%@ page import="org.apache.commons.logging.LogFactory" %>
.
<%
Log log = LogFactory.getLog(yourJsp1Name.class);
log.info("this message was writed from yourJsp1Name.jsp");
%>
This way you will have all
TK,
If i understand what you want, you can do something like this.
you can define a logger for each page (I think you have jsp`s), that causes
that every record on the log file has its logger name on the log file.
example: (if you are using log4j)
your jsp“s must be like this: (yourJspName = yo