logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni Cuccu - CUP2000 <giovanni.cu...@cup2000.it>
Subject Re: Is it possible to e-mail all logging related to a specific thread?
Date Wed, 30 Aug 2006 15:39:09 GMT
I do not use an email appender, but a java method.If I correctly 
understand your proposal I have to write a custom appender anyway ,i.e. 
standard log4j distribution does not provide a solution for my problem, 
is it right?
Giovanni Cuccu
> You could maybe make an appender that adds the event to the MDC and
> then have your email appender include the MDC.  Be sure to clear the
> MDC at the end of the request.  That seems like it might be the
> easiest solution but someone else might have a better idea.
> 

-- 
Giovanni Cuccu
CUP 2000 Spa
Via del Borgo di S. Pietro, 90/c - 40126 Bologna
e-mail: giovanni.cuccu _at_ cup2000.it


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


Mime
View raw message