logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <...@urbanet.ch>
Subject RE: JSPAppender?
Date Wed, 10 Jan 2001 14:22:18 GMT
At 08:18 10.01.2001 -0500, you wrote:
>I'm new to log4j as well, but I've spent the past couple of days trying to
>getup to speed.  The problem you address is having a separate output target
>for each client request, and it appears to me that log4j's design is not set
>up for this.
>To log output, you must have a Category object which you obtain with the
>getInstance method.  The instance must supply a category name string in
>order to get the object.  Since you want a separate instance for each web
>request, the name string needs to be unique to the request.  You could
>generate a name using a session id or Cookie.  Since Category instances are
>not capable of being destroyed, you would theoretically continue to create
>these instances for each web request until the JSP JVM runs out of memory.


Sorry my mistake. Your description is accurate. The validity of the 
SocketServer example remains. Ceki

View raw message