You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Scott Burns <sb...@trcinc.com> on 2003/06/18 04:59:20 UTC

Log4j within JSP

Any Suggestions for using log4j from  a JSP?  I don't see any mention in
the manual.  For instance what fqcn do you use?  Any help would be
appreciated.  And I would recommend the book it is a great read and very
helpful 

Scott

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org


RE: Log4j within JSP

Posted by Scott Heaberlin <he...@yahoo.com>.
We don't use FQCN for our JSP pages.

As each request comes in, we use

Logger.getLogger(request.getRequestURI());

This looks much nicer than generated JSP class names when we view log
output in Chainsaw, LF5, etc.

We obtain this Logger in a common include file, in which we also put the
user's sessionId and other data into the MDC.

As far as actual logging statements, we hope to move to log4j taglibs in
the future.

Hope this helps,


-Scott Heaberlin
 

> -----Original Message-----
> From: Scott Burns [mailto:sburns@trcinc.com] 
> Sent: Tuesday, June 17, 2003 10:59 PM
> To: Log4J Users List
> Subject: Log4j within JSP
> 
> 
> Any Suggestions for using log4j from  a JSP?  I don't see any 
> mention in the manual.  For instance what fqcn do you use?  
> Any help would be appreciated.  And I would recommend the 
> book it is a great read and very helpful 
> 
> Scott
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: log4j-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org