logger.error(String, Throwable, Object...) support??

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

logger.error(String, Throwable, Object...) support??

chanwook park
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

===============================================

_______________________________________________
slf4j-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/slf4j-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: logger.error(String, Throwable, Object...) support??

Jörn Huxhorn
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 ([hidden email]) 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
> [hidden email]
> http://mailman.qos.ch/mailman/listinfo/slf4j-user

_______________________________________________
slf4j-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/slf4j-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: logger.error(String, Throwable, Object...) support??

TJ Rothwell
I don't see the javadoc describing that behavior.


On Mon, Mar 20, 2017 at 10:29 AM Jörn Huxhorn <[hidden email]> 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 ([hidden email]) 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
> [hidden email]
> http://mailman.qos.ch/mailman/listinfo/slf4j-user

_______________________________________________
slf4j-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/slf4j-user

_______________________________________________
slf4j-user mailing list
[hidden email]
http://mailman.qos.ch/mailman/listinfo/slf4j-user
Loading...