How do you send emails right now?  I can't think of a way to do this
without writing an appender.  I think the SMTPAppender send some of
the logs before the error but probably not exactly what you want.

On 8/30/06, Giovanni Cuccu - CUP2000 <[EMAIL PROTECTED]> wrote:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
James Stauffer        http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to