Mark,

 

Pass null as the Throwable object.

 

e.g.

 

Throwable e = new Throwable("exception");

 

          public void testWmDailyFileAppender() {

 

                   LoggingEvent le = new
LoggingEvent("com.webmethods.sc.logging.test.unit.WmDailyFileAppenderTest",l
ogger, Level.INFO, "test", null);

 

Hope this helps.

-Kamal.

 

-----Original Message-----
From: Mark [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 3:04 PM
To: Log4J Users List
Subject: preventing stack traces in log files

 

Is there a way to prevent stack traces from being placed in log files?

 I guess the obvious would be to not pass Throwable objects to Log4J,

but is there another solution?

 

---------------------------------------------------------------------

To unsubscribe, e-mail: [EMAIL PROTECTED]

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

Reply via email to