Curt,

Yes, you are absolutely right , this is a unit test, and line 43:
Throwable e = new Throwable("exception");

Needs to be there since I need to manually create a LoggingEvent, which
needs a Throwable object.

Thanks,
-Kamal.

-----Original Message-----
From: Curt Arnold [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 15, 2006 6:34 PM
To: Log4J Users List
Subject: Re: DailyFileAppender exception


On Feb 15, 2006, at 5:03 PM, Kamal Ahmed wrote:

> Hi,
>
>
>
> The method (below) produces an exception. My objective is to log a  
> known
> string , like "Entering Application".
>
> Could anyone please give me a clue of what is happening?
>
> Thanks,
>
> -Kamal.
>
The code fragment you sent did not appear to correspond to the  
exception stack trace.
>
> Entering Applicationtestjava.lang.Throwable: exception
>
>           at
> com.webmethods.sc.logging.test.unit.WmDailyFileAppenderTest.<init> 
> (WmDailyFi
> leAppenderTest.java:43)
>

What is at line 43 of WmDailyFileAppenderTest.java?

 From the call stack, it looks like the constructor of a unit test  
which is typically just a call to super(testName), something like:

public class WmDailyFileAppenderTest extends TestCase {
     public WmDailyFileAppenderTest(final String testName) {
        super(testName);
    }

   //  rest of unit test goes here
}






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

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

Reply via email to