Hi Marteen,

Thanks a lot for the reply.
May be I should have gone thro' the log4j API properly.

-Tanuja


On 6/22/08, Maarten Bosteels <[EMAIL PROTECTED]> wrote:
>
> replace the plus-sign by a comma :-)
>
> log.error("Exception Caught : ",  e);
>
> Maarten
>
> On Sun, Jun 22, 2008 at 2:51 PM, Tanuja Goturi <[EMAIL PROTECTED]>
> wrote:
> > Hi All,
> >
> > I am using a File Appender and I have used the following conversion
> pattern
> > in log4j.properties.
> > log4j.appender.fileAppender.layout.ConversionPattern=%d{dd-MM-yyyy
> hh:mm:ss
> > z} %p [%c.%M()]:%m%n
> > and in my Java class, I do the following to log an exception
> >
> > try {
> >  .
> >  .
> >  .
> > }
> > catch(Exception e){
> >     log.error("Exception Caught : " + e);
> > }
> >
> > And the output turns out to be
> >
> > *22-06-2008 03:26:22 AST ERROR
> >
> [com.shci.shms.reception.spring.controller.TCIpdTransactionsController.getAdmitData()]:Exception
> > Caught in getIPDTransactionAdmitGridData() :
> > java.lang.NumberFormatException: null
> > *
> > *Prob*: I just get what the exception is but I dont get to see the
> complete
> > stack trace.
> > Is there any thing equivalent to e.printStackTrace() in log4j?
> >
> > Thanks in Advance,
> > Tanuja
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to