[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slide-dev
Subject:    Better way of printing exceptions...
From:       Dirk Verbeeck <dirk.verbeeck () pandora ! be>
Date:       2001-07-25 20:52:41
[Download RAW message or body]

Hi

I have just changed the loggers to print the stacktrace if the msg given
is a Throwable.

From now on, to print a stacktrace just use:

Domain.error(e);
or
getLogger().log(e, Logger.ERROR);

this way the stacktrace ends up in the logfile if you are using log4j.

Dirk

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic