[slf4j-dev] Why no error(Throwable) on the Logger interface?
Robert Elliot
rob at lidalia.org.uk
Wed May 27 23:41:57 CEST 2009
On 27 May 2009, at 22:30, Jukka Zitting wrote:
> Hi,
>
> On Wed, May 27, 2009 at 6:39 PM, Robert Elliot <rob at lidalia.org.uk>
> wrote:
>> 1) Logging in the uncaught exception handler for a thread.
>
> log.error("Uncaught exception from thread " + thread, exception);
>
My logging implementation gives me that information if I want it.
>
>> 2) Logging an exception from a service in a controller.
>
> Why is the controller calling the service? There must be some trigger
> for the service call, which is then the context of the exception.
>
Because that's what the controller does. It's mapped to a URL, and
it's called whenever that URL is hit. I already know everything I
need to know about the request from the fact that it got to the
controller.
>
> BR,
>
> Jukka Zitting
> _______________________________________________
> dev mailing list
> dev at slf4j.org
> http://www.slf4j.org/mailman/listinfo/dev
More information about the slf4j-dev
mailing list