cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Rassy <ra...@math.TU-Berlin.DE>
Subject Re: setup() called twice in one request
Date Tue, 24 Jan 2006 19:14:54 GMT
Hello,

On Tuesday 24 January 2006 14:29, Giacomo Pati wrote:
> > Is there a way to create a stack trace and insert it into the logs? I
> > could do something like
> >
> > try
> >  {
> >    throw new MyExcpetion();
> >  }
> > catch (MyException myExcpetion)
> >  {
> >    this.getLogger.debug( /* get stack trace from myException */ );
> >  }
>
> You don't have to throw it. Just
>
>     getLogger.debug("myException", new MyExcpetion());
>
> should be enought.

On Tuesday 24 January 2006 16:08, Ralph Goers wrote:
> You can also just do new Throwable() and then print it.

Thank you both for your advice. I did it that way and it worked fine.

Tilman

Mime
View raw message