On 27 May 2009, at 22:30, Jukka Zitting wrote:

Hi,

On Wed, May 27, 2009 at 6:39 PM, Robert Elliot <r...@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@slf4j.org
http://www.slf4j.org/mailman/listinfo/dev

_______________________________________________
dev mailing list
dev@slf4j.org
http://www.slf4j.org/mailman/listinfo/dev

Reply via email to