Hadi,
Try:
try {
..
} catch(Exception e) {
cat.error("some message", e);
}
Regards, Ceki
At 09:47 22.03.2001 +0100, you wrote:
>instead of this code that prints the stack trace to the console
>try{
> ...
> ...
>}catch(Exception e){
> cat.error(e.getMessage());
> e.printStackTrace();
>}
>
>I would like to keep the stack trace in an appender (a file) that I have
>defined in log4j.properties
>How is it possible?
>
>Hadi
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
I hope to see you at my ApacheCon 2001 presentation
entitled "Log4j, A Logging Package for Java".
See http://ApacheCon.Com/2001/US/ for more details.
----
Ceki Gülcü Web: http://qos.ch
av. de Rumine 5 email: [EMAIL PROTECTED] (preferred)
CH-1005 Lausanne [EMAIL PROTECTED]
Switzerland Tel: ++41 21 351 23 15
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]