logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Saxtoft <t.saxtoft@sondagsavisen.dk>" <t.saxt...@sondagsavisen.dk>
Subject Catching uncaught exceptions
Date Wed, 11 Dec 2002 10:17:13 GMT
This is really two problems, but since it is concerned with logging I give you both.

We have created a Java client, and now we wish to log all uncaught exceptions. As it is now
exceptions thrown in threads and other uncaught exceptions are written to standard error out
I believe.
I think that I could redirect all exceptions to another output, but here is the second problem.
I would like to write all these exceptions to a logger.

So my two problems are:
1. How do I catch all uncaught exceptions?
2. And how do I write them to a logger?

Thank you,

Thomas Saxtoft

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

View raw message