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