[slf4j-user] logger.error(String, Throwable, Object...) support??

TJ Rothwell tj.rothwell at gmail.com
Mon Mar 20 16:33:57 CET 2017


I don't see the javadoc describing that behavior.
https://www.slf4j.org/api/org/slf4j/Logger.html


On Mon, Mar 20, 2017 at 10:29 AM Jörn Huxhorn <jhuxhorn at googlemail.com>
wrote:

> You’d put the Throwable last, i.e. like logger.error(“Message {} {}”,
> “Foo”, “Bar”, throwable)
>
> Cheers
>
>
> On 20 March 2017 at 15:28:49, chanwook park (chanwook.god at gmail.com)
> wrote:
> > Hi, I always use slf4j gratefully.
> >
> > I have one question.
> > I need logger.error() with caused exception and varags argument.
> >
> > In conclusion,
> > I want to method signature for "logger.error(String, Throwable,
> Object...)".
> >
> > Could I do like that?
> > or Please let me know if better way.
> >
> > Thanks.
> >
> > Best Regards.
> >
> > --
> > ===============================================
> > Chanwook Park
> >
> > Github :: https://github.com/chanwookpark
> > Blog :: http://chanwookpark.github.io
> > LinkedIn :: https://www.linkedin.com/in/chanwook-park-47304148
> > ===============================================
> > _______________________________________________
> > slf4j-user mailing list
> > slf4j-user at qos.ch
> > http://mailman.qos.ch/mailman/listinfo/slf4j-user
>
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20170320/16e0ddaa/attachment.html>


More information about the slf4j-user mailing list