--- Jason Brittain <[EMAIL PROTECTED]> wrote:
> 
> Remy Maucherat wrote:
> 
> > Quoting "Craig R. McClanahan" <[EMAIL PROTECTED]>:
> > 
> >> Logging messages in some other environments -- and even Tomcat 3.x
> IIRC
> >> -- are
> >> actually written out by a background thread, rather than the main
> >> request-processing thread (as it currently is with Catalina, or at
> least
> >> it was
> >> last time I looked :-).  Have you thought about implementing such
> a
> >> thing?
> > 
> > 
> > Actually, I was about to propose that we add asynchronous logging
> :)
> > 
> 
> It sounds like a good idea.  While I was working on this valve I was 
> thinking
> that it would be great to queue up the log messages for another
> thread, but
> I first wanted to quickly get these lighter optimization changes into
> the
> codebase.
> 
> Yes, it would be great for Catalina to offer asynchronous logging. 
> If we're
> going to do that, I'd propose we do it in some pluggable fashion.
> 
> Really, what I'd like to see is for Avalon to offer asynchronous
> logging and
> for Catalina to plug into that.  But, I'm sure lots of folks who use 
> Catalina
> by itself (without Avalon) would like Catalina itself to have
> asynchronous
> logging code of its own.  We could always do both (especially since
> Avalon
> and Catalina use the same license).. ideas?

AFAIK the avalon LogKit ([Java
Apache]/framework/src/java/org/apache/log ) has different LogTargets
which are pluggable. It's a matter of writing a AsyncLogTarget to
achieve the functionallity wanted.

Giacomo


=====


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Reply via email to