I see, thank you! Yours, Alexey Romanov
On Mon, May 21, 2012 at 2:00 PM, <[email protected]> wrote: > Message: 1 > Date: Sun, 20 May 2012 19:57:39 +0200 > From: ceki <[email protected]> > To: User list for the slf4j project <[email protected]> > Subject: Re: [slf4j-user] Overloads taking both format arguments and > Throwable > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > > > On 15.05.2012 09:10, Alexey Romanov wrote: >> Why doesn't Logger have overloads of logging methods which take both >> Object arguments to replace {} and an exception? I.e. >> Logger.error(String, Object, Throwable), Logger.error(String, Object, >> Object, Throwable), Logger.error(String, Object[], Throwable)? It >> seems to me there should be no problem with overload resolution. > > Hi Alexey, > > Because it would entail the addition of 10 new methods to the Logger > interface. Moreover, as of SLF4J 1.6.0, if the last argument is an > exception it is treated as such. See also [1]. > > HTH, > > > [1] http://www.slf4j.org/faq.html#paramException > >> Yours, Alexey Romanov > > -- > Ceki > http://twitter.com/#!/ceki > > > ------------------------------ > > _______________________________________________ > slf4j-user mailing list > [email protected] > http://mailman.qos.ch/mailman/listinfo/slf4j-user > > End of slf4j-user Digest, Vol 8, Issue 8 > **************************************** _______________________________________________ slf4j-user mailing list [email protected] http://mailman.qos.ch/mailman/listinfo/slf4j-user
