Looking at the API, I can't figure out how to log an exception's stack trace
along with a parameterized string. What I want is something like:

...
catch (FooException e) {
  LOG.debug("Got a {} with value {}", e.getClass().getName(), e.getValue(),
e);
}

But it seems from the API that I can either pass a Throwable to the log
method, or some arguments to be interpolated into the String. Is there an
idiom for doing both?

Thanks,
Lowell
_______________________________________________
user mailing list
[email protected]
http://www.slf4j.org/mailman/listinfo/user

Reply via email to