[slf4j-dev] Regarding new SLF4J API
Chetan Mehrotra
chetan.mehrotra at gmail.com
Thu Mar 19 09:52:06 CET 2015
Thats already supported in slf4j by passing the exception as last argument
[1].
[1] http://slf4j.org/faq.html#paramException
Chetan Mehrotra
On Thu, Mar 19, 2015 at 1:51 PM, Adax Adarsh <adax.tm126 at gmail.com> wrote:
> Hi All,
> It would be good to have an API which take message format, arguments and
> throwable parameters at all levels of logging.
>
> As of now, how we are doing it is to use below mentioned way of
> logging(kind of hack).
>
> logger.error( messageFormat, arguments );
> logger.error( messageFormat, throwable );
>
> Which is kind of ugly but still works as a hack. The disadvantage of this
> kind of logging is that, it send 2 log events instead of 1 event.
>
>
> let me know your view on this folks.
>
> Thanks,
> Adarsh
>
> _______________________________________________
> slf4j-dev mailing list
> slf4j-dev at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-dev/attachments/20150319/05fefa6e/attachment.html>
More information about the slf4j-dev
mailing list